nuno / TiCollectionView

UICollectionView / GridView for Appcelerator Titanium
MIT License
111 stars 43 forks source link

Compilation Error with App SDK 7.0.1.GA #86

Open sachincredible9 opened 6 years ago

sachincredible9 commented 6 years ago

Hello Team ,

I am using sdk 7.0.1.GA , Xcode 9.2 Getting following error While compilation: Ld build/Intermediates/TestAPP.build/Release-iphoneos/TestAPP.build/Objects-normal/armv7/TestAPP normal armv7 [TRACE] : cd /Users/TESTUSER/Documents/1/TestAPP/build/iphone [TRACE] : export IPHONEOS_DEPLOYMENT_TARGET=8.0 [TRACE] : export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin:/Users/TESTUSER/.nvm/versions/node/v8.8.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" [TRACE] : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -L/Users/TESTUSER/Documents/1/TestAPP/build/iphone/build/Products/Release-iphoneos -L/Users/TESTUSER/Documents/1/TestAPP/build/iphone/lib -L/Users/TESTUSER/Documents/1/TestAPP/build/iphone/Classes/APSAnalytics -L/Users/TESTUSER/Documents/1/TestAPP/build/iphone/Classes/APSHTTPClient -L/Users/TESTUSER/Library/Application\ Support/Titanium/modules/iphone/ti.collectionview/2.0.1 -L/Users/TESTUSER/Library/Application\ Support/Titanium/modules/iphone/bencoding.utterance/0.4 -F/Users/TESTUSER/Documents/1/TestAPP/build/iphone/build/Products/Release-iphoneos -filelist /Users/TESTUSER/Documents/1/TestAPP/build/iphone/build/Intermediates/TestAPP.build/Release-iphoneos/TestAPP.build/Objects-normal/armv7/TestAPP.LinkFileList -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/TESTUSER/Documents/1/TestAPP/build/iphone/build/Intermediates/TestAPP.build/Release-iphoneos/TestAPP.build/Objects-normal/armv7/TestAPP_lto.o -Xlinker -final_output -Xlinker /Applications/TestAPP.app/TestAPP -fobjc-link-runtime -stdlib=libc++ -ObjC -weak-lti_ios_profiler -weak-lti_ios_debugger -weak-lTiCore -weak_framework iAd -framework CoreMedia -weak_framework CoreMotion -lAPSAnalytics -weak_framework CoreText -framework EventKit -framework EventKitUI -weak_framework Security -licucore -framework Foundation -weak_framework UIKit -framework CoreGraphics -weak_framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -weak_framework MapKit -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -lxml2 -lAPSHTTPClient -ltiverify -lti.collectionview -lbencoding.utterance -Xlinker -dependency_info -Xlinker /Users/TESTUSER/Documents/1/TestAPP/build/iphone/build/Intermediates/TestAPP.build/Release-iphoneos/TestAPP.build/Objects-normal/armv7/TestAPP_dependency_info.dat -o /Users/TESTUSER/Documents/1/TestAPP/build/iphone/build/Intermediates/TestAPP.build/Release-iphoneos/TestAPP.build/Objects-normal/armv7/TestAPP [TRACE] :
[TRACE] : Ld build/Intermediates/TestAPP.build/Release-iphoneos/TestAPP.build/Objects-normal/arm64/TestAPP normal arm64 [TRACE] : cd /Users/TESTUSER/Documents/1/TestAPP/build/iphone [TRACE] : export IPHONEOS_DEPLOYMENT_TARGET=8.0 [TRACE] : export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin:/Users/TESTUSER/.nvm/versions/node/v8.8.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" [TRACE] : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -L/Users/TESTUSER/Documents/1/TestAPP/build/iphone/build/Products/Release-iphoneos -L/Users/TESTUSER/Documents/1/TestAPP/build/iphone/lib -L/Users/TESTUSER/Documents/1/TestAPP/build/iphone/Classes/APSAnalytics -L/Users/TESTUSER/Documents/1/TestAPP/build/iphone/Classes/APSHTTPClient -L/Users/TESTUSER/Library/Application\ Support/Titanium/modules/iphone/ti.collectionview/2.0.1 -L/Users/TESTUSER/Library/Application\ Support/Titanium/modules/iphone/bencoding.utterance/0.4 -F/Users/TESTUSER/Documents/1/TestAPP/build/iphone/build/Products/Release-iphoneos -filelist /Users/TESTUSER/Documents/1/TestAPP/build/iphone/build/Intermediates/TestAPP.build/Release-iphoneos/TestAPP.build/Objects-normal/arm64/TestAPP.LinkFileList -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/TESTUSER/Documents/1/TestAPP/build/iphone/build/Intermediates/TestAPP.build/Release-iphoneos/TestAPP.build/Objects-normal/arm64/TestAPP_lto.o -Xlinker -final_output -Xlinker /Applications/TestAPP.app/TestAPP -fobjc-link-runtime -stdlib=libc++ -ObjC -weak-lti_ios_profiler -weak-lti_ios_debugger -weak-lTiCore -weak_framework iAd -framework CoreMedia -weak_framework CoreMotion -lAPSAnalytics -weak_framework CoreText -framework EventKit -framework EventKitUI -weak_framework Security -licucore -framework Foundation -weak_framework UIKit -framework CoreGraphics -weak_framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -weak_framework MapKit -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -lxml2 -lAPSHTTPClient -ltiverify -lti.collectionview -lbencoding.utterance -Xlinker -dependency_info -Xlinker /Users/TESTUSER/Documents/1/TestAPP/build/iphone/build/Intermediates/TestAPP.build/Release-iphoneos/TestAPP.build/Objects-normal/arm64/TestAPP_dependency_info.dat -o /Users/TESTUSER/Documents/1/TestAPP/build/iphone/build/Intermediates/TestAPP.build/Release-iphoneos/TestAPP.build/Objects-normal/arm64/TestAPP [TRACE] : Undefined symbols for architecture arm64: [TRACE] : "_OBJCCLASS$_TiUIRefreshControlProxy", referenced from: [TRACE] : objc-class-ref in libti.collectionview.a(TiCollectionviewCollectionView.o) [TRACE] : ld: symbol(s) not found for architecture arm64 [TRACE] : clang: error: linker command failed with exit code 1 (use -v to see invocation) [ERROR] : 2018-01-28 15:20:20.506 xcodebuild[93935:5554474] DTDeviceKit: deviceType from ee7d1abf6e476321c91509a9ef0f1a9c0a062fa5 was NULL [ERROR] : ARCHIVE FAILED [ERROR] : The following build commands failed: [ERROR] : Ld build/Intermediates/TestAPP.build/Release-iphoneos/TestAPP.build/Objects-normal/arm64/TestAPP normal arm64 [ERROR] : (1 failure)

hansemannn commented 6 years ago

What version of the module are you using? As a workaround, try to set Ti.UI.createRefreshControl() somewhere in your code, so the symbols are generated for sure.

sachincredible9 commented 6 years ago

2.0.1 , It works, after adding Ti.UI.createRefreshControl. Thanks a lot !!!