hansemannn / titanium-firebase-database

Use the Firebase Realtime Database SDK in Axway Titanium 🚀
Other
7 stars 5 forks source link

Build fails when using module with Titanium SDK 8.0.0 #5

Closed RavindraChherke closed 5 years ago

RavindraChherke commented 5 years ago

Hi,

Could you please help me with this.


[TRACE] cd /Users/ravindra/Documents/Appcelerator_Studio_Workspace/appp/build/iphone
[TRACE] export IPHONEOS_DEPLOYMENT_TARGET=9.0
[TRACE] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -L/Users/ravindra/Documents/Appcelerator_Studio_Workspace/appp/build/iphone/build/Products/Debug-iphonesimulator -L/Users/ravindra/Documents/Appcelerator_Studio_Workspace/appp/build/iphone/lib -L/Users/ravindra/Documents/Appcelerator_Studio_Workspace/appp/modules/iphone/firebase.database/1.1.1 -L/Users/ravindra/Library/Application\ Support/Titanium/modules/iphone/firebase.core/2.2.0 -F/Users/ravindra/Documents/Appcelerator_Studio_Workspace/appp/build/iphone/build/Products/Debug-iphonesimulator -FFrameworks -F/Users/ravindra/Library/Application\ Support/Titanium/modules/iphone/firebase.core/2.2.0/platform -F/Users/ravindra/Library/Application\ Support/Titanium/modules/iphone/firebase.core/2.2.0/platform -F/Users/ravindra/Documents/Appcelerator_Studio_Workspace/appp/modules/iphone/firebase.database/1.1.1/platform -F/Users/ravindra/Documents/Appcelerator_Studio_Workspace/appp/modules/iphone/firebase.database/1.1.1/platform -filelist /Users/ravindra/Documents/Appcelerator_Studio_Workspace/appp/build/iphone/build/Intermediates/appp.build/Debug-iphonesimulator/appp.build/Objects-normal/x86_64/appp.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/ravindra/Documents/Appcelerator_Studio_Workspace/appp/build/iphone/build/Intermediates/appp.build/Debug-iphonesimulator/appp.build/Objects-normal/x86_64/appp_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -stdlib=libc++ -fobjc-link-runtime -ObjC -weak_framework JavaScriptCore -framework StoreKit -framework StoreKit -lxml2 -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/ravindra/Documents/Appcelerator_Studio_Workspace/appp/build/iphone/build/Intermediates/appp.build/Debug-iphonesimulator/appp.build/appp.app-Simulated.xcent -framework CoreMedia -weak_framework CoreMotion -weak_framework CoreText -framework EventKit -framework EventKitUI -weak_framework Security -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 -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -ltiverify -lfirebase.database -lfirebase.core -framework TitaniumKit -framework GoogleToolboxForMac -framework GTMSessionFetcher -framework FirebaseNanoPB -framework FirebaseInstanceID -framework FirebaseCoreDiagnostics -framework FirebaseCore -framework leveldb-library -framework FirebaseDatabase -framework GoogleAppMeasurement -framework nanopb -framework GoogleUtilities -framework Protobuf -Xlinker -dependency_info -Xlinker /Users/ravindra/Documents/Appcelerator_Studio_Workspace/appp/build/iphone/build/Intermediates/appp.build/Debug-iphonesimulator/appp.build/Objects-normal/x86_64/appp_dependency_info.dat -o /Users/ravindra/Documents/Appcelerator_Studio_Workspace/appp/build/iphone/build/Products/Debug-iphonesimulator/appp.app/appp
[TRACE] Undefined symbols for architecture x86_64:
[TRACE]  "_utf8_nextCharSafeBody", referenced from:
[TRACE]  -[FSRWebSocket _innerPumpScanner] in FirebaseDatabase(FSRWebSocket_221b45e2259898169b2d29adbe0c7833.o)
[TRACE] ld: symbol(s) not found for architecture x86_64
[TRACE] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR] Ld /Users/ravindra/Documents/Appcelerator_Studio_Workspace/appp/build/iphone/build/Products/Debug-iphonesimulator/appp.app/appp normal x86_64
[ERROR] (1 failure)
Build failed. Process exited with code 1.```
janvennemann commented 5 years ago

@hansemannn, same here, missing -licucore linker flag (it's not linked anymore by default in our Xcode project since 8.0.0).

For anyone running into this, you can easily fix it by adding the following line to module.xcconfig:

OTHER_LDFLAGS=$(inherited) -licucore