Hello Guys,
After my success on my Android module I created a module for iOS, here in iOS I'm able build the module and pack it as zip if I add the module in my iOS application I'm not able to run it.
I'm trying to create an iOS module for Dragon Naunce SDK (for speech to text integration for my iOS application). I made the code with the example application from naunce, when I try to build using build.py it shows me Build Successful and my module zip is generated. When I put that zip, add the module in tiapp.xml and try to run the app in iPhone, the build exits with following message
[INFO] Performing clean build [ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation) [ERROR] [ERROR] Error: Traceback (most recent call last): File "/Users/ramkumar/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/iphone/builder.py", line 1465, in main execute_xcode("iphoneos%s" % iphone_version,args,False) File "/Users/ramkumar/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/iphone/builder.py", line 1224, in execute_xcode output = run.run(args,False,False,o) File "/Users/ramkumar/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/iphone/run.py", line 41, in run sys.exit(rc) SystemExit: 65The build.log says the following message
** BUILD FAILED ** The following build commands failed: Ld build/BasicTests.build/Debug-iphoneos/BasicTests-universal.build/Objects-normal/armv6/BasicTests normal armv6 (1 failure) EXIT CODE WAS: 65 Exception detected in script: Traceback (most recent call last): File "/Users/ramkumar/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/iphone/builder.py", line 1465, in main execute_xcode("iphoneos%s" % iphone_version,args,False) File "/Users/ramkumar/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/iphone/builder.py", line 1224, in execute_xcode output = run.run(args,False,False,o) File "/Users/ramkumar/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/iphone/run.py", line 41, in run sys.exit(rc) SystemExit: 65
=============
Thanks
2 Answers
have you looked at the IOS Module developers guide?
https://wiki.appcelerator.org/display/guides/iOS+Module+Development+Guide
my first guess is that you have not properly included the necessary third party libraries in the configuration files. This is all covered in the documentation, give that a try and post your results.
Now I'm try to run the app from xcode (the xcode project generated by titanium resides in my build/iphone directory). When I try to build the app, the build failed with following message
Ld /Users/ramkumar/Library/Developer/Xcode/DerivedData/BasicTests-dcvuoxgzbmmloxgdohwrjbcbqshk/Build/Intermediates/BasicTests.build/Debug-iphoneos/BasicTests-universal.build/Objects-normal/armv6/BasicTests normal armv6 cd /Users/ramkumar/Documents/TitaniumStudioWorkspace/BasicTests/build/iphone setenv IPHONEOS_DEPLOYMENT_TARGET 4.0 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv6 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -L/Users/ramkumar/Library/Developer/Xcode/DerivedData/BasicTests-dcvuoxgzbmmloxgdohwrjbcbqshk/Build/Products/Debug-iphoneos -L/Users/sivakumarkumar/Documents/TitaniumStudioWorkspace/BasicTests/build/iphone/lib -L/Users/ramkumar/Documents/TitaniumStudioWorkspace/BasicTests/modules/iphone/com.ramkumar.nauncetry/1 -L/Users/ramkumar/Documents/TitaniumStudioWorkspace/BasicTests/modules/iphone/com.ramkumar.nauncetry/1 -L/Users/ramkumar/Documents/TitaniumStudioWorkspace/BasicTests/build/iphone -F/Users/ramkumar/Library/Developer/Xcode/DerivedData/BasicTests-dcvuoxgzbmmloxgdohwrjbcbqshk/Build/Products/Debug-iphoneos -filelist /Users/ramkumar/Library/Developer/Xcode/DerivedData/BasicTests-dcvuoxgzbmmloxgdohwrjbcbqshk/Build/Intermediates/BasicTests.build/Debug-iphoneos/BasicTests-universal.build/Objects-normal/armv6/BasicTests.LinkFileList -dead_strip -ObjC -weak_framework iAd -weak_framework iAd -weak_framework CoreVideo -weak_framework CoreMedia -miphoneos-version-min=4.0 -framework Foundation -weak_framework UIKit -framework CoreGraphics -framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -framework MapKit -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -lxml2 -framework StoreKit -lTiCore -ltiverify -lti_ios_debugger -licucore -lcom.ramkumar.nauncetry -o /Users/ramkumar/Library/Developer/Xcode/DerivedData/BasicTests-dcvuoxgzbmmloxgdohwrjbcbqshk/Build/Intermediates/BasicTests.build/Debug-iphoneos/BasicTests-universal.build/Objects-normal/armv6/BasicTests Undefined symbols for architecture armv6: "_SKSearchRecognizerType", referenced from: -[ComRamkumarNauncetryModule speech] in libcom.ramkumar.nauncetry.a(ComRamkumarNauncetryModule.o) "_OBJC_CLASS_$_SKEarcon", referenced from: objc-class-ref in libcom.ramkumar.nauncetry.a(ComRamkumarNauncetryModule.o) "_OBJC_CLASS_$_SKRecognizer", referenced from: objc-class-ref in libcom.ramkumar.nauncetry.a(ComRamkumarNauncetryModule.o) "_OBJC_CLASS_$_SpeechKit", referenced from: objc-class-ref in libcom.ramkumar.nauncetry.a(ComRamkumarNauncetryModule.o) ld: symbol(s) not found for architecture armv6 clang: error: linker command failed with exit code 1 (use -v to see invocation)
============
Thanks
Your Answer
Think you can help? Login to answer this question!