I have issues when making an archive from a (legacy) iOS project. While archiving I get the following error:
Libtool /Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/IntermediateBuildFilesPath/PSPDFKit-lib.build/Release-iphoneos/PSPDFKit.build/Objects-normal/armv7/libPSPDFKit.a normal armv7
cd /Users/appcell/Documents/Projects/Elho/Libraries/PSPDFKit
export IPHONEOS_DEPLOYMENT_TARGET=5.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/BuildProductsPath/Release-iphoneos -filelist /Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/IntermediateBuildFilesPath/PSPDFKit-lib.build/Release-iphoneos/PSPDFKit.build/Objects-normal/armv7/PSPDFKit.LinkFileList /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib -framework AssetsLibrary -framework CoreMedia -framework AVFoundation -framework ImageIO -framework MediaPlayer -framework CoreText -framework CoreGraphics -weak_framework UIKit -framework MessageUI -framework QuartzCore -framework Foundation -o /Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/IntermediateBuildFilesPath/PSPDFKit-lib.build/Release-iphoneos/PSPDFKit.build/Objects-normal/armv7/libPSPDFKit.a
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib (No such file or directory)
When I create a link frrom the /usr/lib/libz.dylib file to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib (which used to work in the past), I now get the following error:
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib, missing required architecture armv7 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib (2 slices)
Undefined symbols for architecture armv7:
"_deflateInit_", referenced from:
-[NSData(PSPDFCompression) pspdf_zlibDeflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_deflate", referenced from:
-[ASIDataCompressor compressBytes:length:error:shouldFinish:] in ASIDataCompressor.o
-[NSData(PSPDFCompression) pspdf_zlibDeflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_deflateInit2_", referenced from:
-[ASIDataCompressor setupStream] in ASIDataCompressor.o
"_inflate", referenced from:
_unzReadCurrentFile in unzip.o
-[ASIDataDecompressor uncompressBytes:length:error:] in ASIDataDecompressor.o
-[NSData(PSPDFCompression) pspdf_zlibInflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_get_crc_table", referenced from:
_unzOpenCurrentFile3 in unzip.o
"_inflateEnd", referenced from:
_unzCloseCurrentFile in unzip.o
-[ASIDataDecompressor closeStream] in ASIDataDecompressor.o
-[NSData(PSPDFCompression) pspdf_zlibInflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_crc32", referenced from:
_unzReadCurrentFile in unzip.o
"_inflateInit_", referenced from:
-[NSData(PSPDFCompression) pspdf_zlibInflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_deflateEnd", referenced from:
-[ASIDataCompressor closeStream] in ASIDataCompressor.o
-[NSData(PSPDFCompression) pspdf_zlibDeflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_inflateInit2_", referenced from:
_unzOpenCurrentFile3 in unzip.o
-[ASIDataDecompressor setupStream] in ASIDataDecompressor.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Has anyone ever had the same issues?
PSPDFKit founder here. Our PDF SDK uses libz, so either link with libz.dylib (which has been renamed in later Xcode versions to be libz.tbd) or add the linker flag -lz which should als do the trick.
If you update our SDK to the latest version this all happens automatically, since we're using a dynamic framework which already knows what dependencies it requires.
Related
I have been googling the above error for four days and can't find a solution that works for my project. This is my error log if any one has any ideas please respond. I am trying to make my project run. I am upgrading from Xcode 6 to Xcode 7 to iOS 9.
Ld /Users/pantelisnatsis/Library/Developer/Xcode/DerivedData/FirmaFinal-fgvuqoqtnzbydzfgwdnttvhzxftc/Build/Products/Debug-iphonesimulator/FirmaQuipux.app/FirmaQuipux normal i386
cd "/Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal"
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -L/Users/pantelisnatsis/Library/Developer/Xcode/DerivedData/FirmaFinal-fgvuqoqtnzbydzfgwdnttvhzxftc/Build/Products/Debug-iphonesimulator -L/Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad\ 3/RESPALDOFirmaIpad/FirmaFinal -F/Users/pantelisnatsis/Library/Developer/Xcode/DerivedData/FirmaFinal-fgvuqoqtnzbydzfgwdnttvhzxftc/Build/Products/Debug-iphonesimulator -filelist /Users/pantelisnatsis/Library/Developer/Xcode/DerivedData/FirmaFinal-fgvuqoqtnzbydzfgwdnttvhzxftc/Build/Intermediates/FirmaFinal.build/Debug-iphonesimulator/FirmaFinal.build/Objects-normal/i386/FirmaQuipux.LinkFileList -mios-simulator-version-min=9.0 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework AVFoundation -framework AudioToolbox -framework QuartzCore -framework Security -framework CoreGraphics -framework Foundation -framework UIKit -lcrypto -lchilkatIos -lssl -Xlinker -dependency_info -Xlinker /Users/pantelisnatsis/Library/Developer/Xcode/DerivedData/FirmaFinal-fgvuqoqtnzbydzfgwdnttvhzxftc/Build/Intermediates/FirmaFinal.build/Debug-iphonesimulator/FirmaFinal.build/Objects-normal/i386/FirmaQuipux_dependency_info.dat -o /Users/pantelisnatsis/Library/Developer/Xcode/DerivedData/FirmaFinal-fgvuqoqtnzbydzfgwdnttvhzxftc/Build/Products/Debug-iphonesimulator/FirmaQuipux.app/FirmaQuipux
ld: warning: ignoring file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libcrypto.a, file was built for archive which is not the architecture being linked (i386): /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libcrypto.a
ld: warning: ignoring file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libchilkatIos.a, missing required architecture i386 in file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libchilkatIos.a (2 slices)
ld: warning: ignoring file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libssl.a, file was built for archive which is not the architecture being linked (i386): /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libssl.a
Undefined symbols for architecture i386:
"_ASN1_STRING_data", referenced from:
_CertificateGetIssuerInfo in MainViewController.o
_CertificateGetInfo in MainViewController.o
_CertificateGetExpiryDate in MainViewController.o
"_ASN1_TIME_to_generalizedtime", referenced from:
_CertificateGetExpiryDate in MainViewController.o
"_ASN1_get_object", referenced from:
_obtener_extension in MainViewController.o
"_OBJC_CLASS_$_CkoCertStore", referenced from:
objc-class-ref in MainViewController.o
"_OBJC_CLASS_$_CkoCrypt2", referenced from:
objc-class-ref in MainViewController.o
"_OBJ_obj2nid", referenced from:
_obtener_extension in MainViewController.o
"_OBJ_obj2txt", referenced from:
_obtener_extension in MainViewController.o
"_OBJ_txt2nid", referenced from:
_CertificateGetIssuerInfo in MainViewController.o
_CertificateGetInfo in MainViewController.o
"_X509_EXTENSION_get_data", referenced from:
_obtener_extension in MainViewController.o
"_X509_NAME_ENTRY_get_data", referenced from:
_CertificateGetIssuerInfo in MainViewController.o
_CertificateGetInfo in MainViewController.o
"_X509_NAME_get_entry", referenced from:
_CertificateGetIssuerInfo in MainViewController.o
_CertificateGetInfo in MainViewController.o
"_X509_NAME_get_index_by_NID", referenced from:
_CertificateGetIssuerInfo in MainViewController.o
_CertificateGetInfo in MainViewController.o
"_X509_get_ext", referenced from:
_obtener_extension in MainViewController.o
"_X509_get_ext_count", referenced from:
_obtener_extension in MainViewController.o
"_X509_get_issuer_name", referenced from:
_CertificateGetIssuerInfo in MainViewController.o
"_X509_get_subject_name", referenced from:
_CertificateGetInfo in MainViewController.o
"_d2i_X509", referenced from:
-[MainViewController ejecutarAccion:::::::] in MainViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You have a some libraries linked against your application that do not have an i386 architecture slice in them. These are the libraries it is complaining about:
libcrypto.a
libchilkatIos.a
libssl.a
You either need to include versions of these libraries that include machine code for all the architectures of your target (simulator is i386 or x86-64, iOS device is going to be some arm instruction set like arm7vs or arm64), or you need to restrict your target's architectures to match what is available in your dependent libraries.
There are three linker warnings, 15+ Undefined symbols for architecture i386.
ld: warning: ignoring file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libcrypto.a, file was built for archive which is not the architecture being linked (i386): /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libcrypto.a
ld: warning: ignoring file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libchilkatIos.a, missing required architecture i386 in file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libchilkatIos.a (2 slices)
ld: warning: ignoring file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libssl.a, file was built for archive which is not the architecture being linked (i386): /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libssl.a
libcrypto.a, libchilkatIos.a, libssl.a
The final error which is fairly self explanatory:
ld: symbol(s) not found for architecture i386
These are i386 which indicates you are building for the simulator which is i386 bases since it is a Mac app.
You must get/add i386 libraries for the simulator.
Looks like libcrypo is not built for all devices, not sure where you are getting your library from, check to make sure that they have a build that is built for al l device, if you are building this lib yourself, then you need to make builds for all the architicectuers and sure you link them all together
This problem has begun occurring since updating my app for IOS 9 and is driving me crazy.
There were no problems with the app in IOS 8.4.1
I have listed the problem below first for reference and then after described what i have tried so far:
Ld /Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Products/Debug-iphoneos/PulseGuard.app/PulseGuard normal armv7
cd /Users/Chris/Documents/pulseguardproject
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -L/Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Products/Debug-iphoneos -F/Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Products/Debug-iphoneos -F/Users/Chris/Documents/pulseguardproject/sdk/dependencies -filelist /Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Intermediates/PulseGuard.build/Debug-iphoneos/PulseGuard.build/Objects-normal/armv7/PulseGuard.LinkFileList -miphoneos-version-min=7.1 -dead_strip -all_load -lstdc++ -fobjc-arc -fobjc-link-runtime -lz -framework WFConnector -framework MessageUI -framework ExternalAccessory -framework MediaPlayer -framework AudioToolbox -framework AVFoundation -framework CoreBluetooth -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreData -Xlinker -dependency_info -Xlinker /Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Intermediates/PulseGuard.build/Debug-iphoneos/PulseGuard.build/Objects-normal/armv7/PulseGuard_dependency_info.dat -o /Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Products/Debug-iphoneos/PulseGuard.app/PulseGuard
Undefined symbols for architecture armv7:
"_SCNetworkReachabilityGetFlags", referenced from:
-[WFAPIReachability isReachable] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability isReachableViaWWAN] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability isReachableViaWiFi] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability connectionRequired] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability isConnectionOnDemand] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability isInterventionRequired] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability reachabilityFlags] in WFConnector(WFAPIReachability.o)
...
"_SCNetworkReachabilitySetDispatchQueue", referenced from:
-[WFAPIReachability startNotifier] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability stopNotifier] in WFConnector(WFAPIReachability.o)
"_SCNetworkReachabilitySetCallback", referenced from:
-[WFAPIReachability startNotifier] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability stopNotifier] in WFConnector(WFAPIReachability.o)
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[WFAPIReachability reachabilityWithAddress:] in WFConnector(WFAPIReachability.o)
"_SCNetworkReachabilityCreateWithName", referenced from:
+[WFAPIReachability reachabilityWithHostname:] in WFConnector(WFAPIReachability.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here is what i have tried so far:
Updating the WFConnector framework to the latest version which is compatible with IOS 9.
Looked through the Build Settings and removed any reference to the old version of the framework.
Searched the internet for any other references to the problem, the only one found was here Undefined symbols for architecture armv7 which i have checked through however has not solved my problem.
I did notice that the libz.dylib framework was missing since updating and so have tried searching in /usr/lib/ and manually adding the framework back in, this has not worked, i have also added the new libz.tbd file into the framework list however this also has not fixed the problem.
Can anyone please suggest the correct solution to this problem?
I discovered the answer to this problem was a missing framework called "SystemConfiguration.framework"
Once this had been added all the errors resolved and the app loaded without issue.
I've just updated to Xcode 6 in order to submit my apps for review on the iOS app store and have come across more problems. Please see the image attached! Any help at all would be amazing.
Build target CRS
Ld /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Intermediates/CRS.build/Debug-iphoneos/CRS.build/Objects-normal/armv7/CRS normal armv7
cd "/Users/jacbeyportes/Documents/Oasis Websites/Cadet Registration System/Apps/iOS/CRS/platforms/ios"
export IPHONEOS_DEPLOYMENT_TARGET=6.0
export 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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos -F/Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos -filelist /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Intermediates/CRS.build/Debug-iphoneos/CRS.build/Objects-normal/armv7/CRS.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -force_load /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos/libCordova.a -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework AssetsLibrary /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos/libCordova.a -framework CoreGraphics -framework MobileCoreServices -framework CoreLocation -liconv -framework AVFoundation -framework CoreVideo -framework QuartzCore -weak_framework SystemConfiguration -Xlinker -dependency_info -Xlinker /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Intermediates/CRS.build/Debug-iphoneos/CRS.build/Objects-normal/armv7/CRS_dependency_info.dat -o /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Intermediates/CRS.build/Debug-iphoneos/CRS.build/Objects-normal/armv7/CRS
ld: warning: ignoring file /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7): /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos/libCordova.a
Undefined symbols for architecture armv7:
"_OBJC_METACLASS_$_CDVPlugin", referenced from:
_OBJC_METACLASS_$_PushPlugin in PushPlugin.o
_OBJC_METACLASS_$_CDVBarcodeScanner in CDVBarcodeScanner.o
_OBJC_METACLASS_$_CDVConnection in CDVConnection.o
"_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_CDVRemoteNotification", referenced from:
-[AppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] in AppDelegate.o
"_OBJC_CLASS_$_CDVCommandQueue", referenced from:
_OBJC_CLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_CLASS_$_CDVPlugin", referenced from:
_OBJC_CLASS_$_PushPlugin in PushPlugin.o
_OBJC_CLASS_$_CDVBarcodeScanner in CDVBarcodeScanner.o
_OBJC_CLASS_$_CDVConnection in CDVConnection.o
"_CDVRemoteNotificationError", referenced from:
-[AppDelegate application:didFailToRegisterForRemoteNotificationsWithError:] in AppDelegate.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:openURL:sourceApplication:annotation:] in AppDelegate.o
"_OBJC_CLASS_$_CDVPluginResult", referenced from:
objc-class-ref in PushPlugin.o
objc-class-ref in CDVBarcodeScanner.o
objc-class-ref in CDVConnection.o
"_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You will need to update both Cordova and your plugins.
Here is the news on Cordova moving to 3.6.3
http://cordova.apache.org/announcements/2014/09/22/cordova-361.html
Here is the same regarding the plugins that were updated
http://cordova.apache.org/news/2014/09/22/plugins-release.html
Then update your project
cordova platform update ios
However, I've also run into some issues but it was fixed by removing the platform and adding it again.. You can do that by:
cordova platform remove ios
cordova platform add ios
I had to uninstall cordova and reinstall cordova (version 3.6.3). Then I removed the iOS platform from my project folder and readded it. I also removed and re-added each cordova plugin.
It was a pain, but that fixed my compile issues for me.
Has anyone been able to integrate Firebase into an iOS project that already runs tokbox and parse.com?
When I include -ObjC per Firebase instructions, I get lots of apple mach-o linker errors (pasted below). If I do not include -objC, the project compiles without error, but then Firebase has runtime error (also pasted below). xcode 5.1.1, parse 1.2.20, tokbox 2.2.1, firebase 1.1.10.
I have seen apps with tokbox and firebase living happy together, it should be possible.
(1) errors when include '-ojbC'
Ld /Users/tmr/Library/Developer/Xcode/DerivedData/Call_Me-gnseubspfupoqccmstcxpnbpkvqn/Build/Products/Debug-iphoneos/Call\ Me.app/Call\ Me normal armv7
cd "/Users/tmr/Google Drive/software/xcode/Call Me"
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export 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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -L/Users/tmr/Library/Developer/Xcode/DerivedData/Call_Me-gnseubspfupoqccmstcxpnbpkvqn/Build/Products/Debug-iphoneos -F/Users/tmr/Library/Developer/Xcode/DerivedData/Call_Me-gnseubspfupoqccmstcxpnbpkvqn/Build/Products/Debug-iphoneos -F/Users/tmr/Google\ Drive/software/xcode/Call\ Me -F/Users/tmr/Downloads/OpenTok-iOS-2.2.1 -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Users/tmr/Downloads -filelist /Users/tmr/Library/Developer/Xcode/DerivedData/Call_Me-gnseubspfupoqccmstcxpnbpkvqn/Build/Intermediates/Call\ Me.build/Debug-iphoneos/Call\ Me.build/Objects-normal/armv7/Call\ Me.LinkFileList -dead_strip -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.1 -framework Firebase -lc++ -licucore -framework XCTest -lstdc++.6.0.9 -lxml2 -lsqlite3 -framework GLKit -framework CoreMedia -framework CoreVideo -framework CoreTelephony -framework OpenTok -framework SystemConfiguration -framework StoreKit -framework Security -framework QuartzCore -framework MobileCoreServices -lz -framework CoreLocation -framework CoreGraphics -framework CFNetwork -framework AudioToolbox -framework UIKit -framework Parse -framework Foundation -Xlinker -dependency_info -Xlinker /Users/tmr/Library/Developer/Xcode/DerivedData/Call_Me-gnseubspfupoqccmstcxpnbpkvqn/Build/Intermediates/Call\ Me.build/Debug-iphoneos/Call\ Me.build/Objects-normal/armv7/Call\ Me_dependency_info.dat -o /Users/tmr/Library/Developer/Xcode/DerivedData/Call_Me-gnseubspfupoqccmstcxpnbpkvqn/Build/Products/Debug-iphoneos/Call\ Me.app/Call\ Me
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Library/Frameworks/XCTest.framework/XCTest, missing required architecture armv7 in file /Applications/Xcode.app/Contents/Developer/Library/Frameworks/XCTest.framework/XCTest (2 slices)
Undefined symbols for architecture armv7:
"_FBTokenInformationTokenKey", referenced from:
-[PFFacebookTokenCachingStrategy accessToken] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setAccessToken:] in Parse(PFFacebookTokenCachingStrategy.o)
"_OBJC_CLASS_$_FBSessionTokenCachingStrategy", referenced from:
_OBJC_CLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
"_SLServiceTypeTwitter", referenced from:
-[PF_Twitter getAccessTokenForReverseAuthAsync:localTwitterAccount:] in Parse(PF_Twitter.o)
-[PF_Twitter getLocalTwitterAccountAsync] in Parse(PF_Twitter.o)
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
"_ACAccountTypeIdentifierTwitter", referenced from:
-[PF_Twitter getLocalTwitterAccountAsync] in Parse(PF_Twitter.o)
"_FBTokenInformationExpirationDateKey", referenced from:
-[PFFacebookTokenCachingStrategy cacheTokenInformation:] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy expirationDate] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setExpirationDate:] in Parse(PFFacebookTokenCachingStrategy.o)
"_OBJC_METACLASS_$_FBSessionTokenCachingStrategy", referenced from:
_OBJC_METACLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
"_FBTokenInformationUserFBIDKey", referenced from:
-[PFFacebookTokenCachingStrategy facebookId] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setFacebookId:] in Parse(PFFacebookTokenCachingStrategy.o)
"_OBJC_CLASS_$_SLComposeViewController", referenced from:
objc-class-ref in Parse(PF_Twitter.o)
"_OBJC_CLASS_$_FBAppCall", referenced from:
objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
"_OBJC_CLASS_$_ACAccountStore", referenced from:
objc-class-ref in Parse(PF_Twitter.o)
"_OBJC_CLASS_$_SLRequest", referenced from:
objc-class-ref in Parse(PF_Twitter.o)
"_OBJC_CLASS_$_FBRequest", referenced from:
objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
(2) run time error when do not include other linker '-objC'
2014-08-01 00:09:48.756 Call Me[5817:60b] -[FRepo youForgotToSetMinusObjCInTheOtherLinkerFlagsInYourXCodeProject]: unrecognized selector sent to instance 0x155831f0
for my ios project, the solutions was add two frameworks:
FacebookSDK
Social
integrating firebase with parse and tokbox worked after adding the two frameworks.
I can't speak for other SDKs, but for OpenTok to work properly,
Make sure you are using the latest version of all the SDK. For OpenTok, you should download from here: https://tokbox.com/opentok/libraries/client/ios/
Under build settings, make sure valid architectures is only armv7. remove arm64 and armv7s.
Leave Base SDK empty or set it to iOS 7.
I have just updated my Xcode to version 5.0.2
And after updating, all my previously running apps (*perfectly running and archiving) are now giving following errors when I try to archive them for testing on my devices (not connected devices).
Ld /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test normal armv7s
cd /Users/dharammalik/Documents/PhonegapWorkspace/lite_test
setenv IPHONEOS_DEPLOYMENT_TARGET 5.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 armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos -F/Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos -filelist /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -all_load -Obj-C -fobjc-link-runtime -miphoneos-version-min=5.0 -framework CoreLocation -framework ImageIO -framework OpenAL -framework AssetsLibrary /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos/libCordova.a -framework Foundation -weak_framework UIKit -framework CoreGraphics -framework AddressBook -framework AddressBookUI -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework MediaPlayer -framework QuartzCore -framework SystemConfiguration -framework MobileCoreServices -weak_framework CoreMedia -framework CoreLocation -Xlinker -dependency_info -Xlinker /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test_dependency_info.dat -o /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test
ld: warning: ignoring file /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7s): /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos/libCordova.a
Undefined symbols for architecture armv7s:
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_CLASS_$_CDVCommandQueue", referenced from:
_OBJC_CLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:handleOpenURL:] in AppDelegate.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Tried changing the Architectures, but nothing worked. Any idea how to resolve these issues? They were not there at all in the previous version of Xcode I had.
Remove armv7s from valid architectures section and it will work.
Build Settings --> Architectures --> Valid Architectures
Change the Buid setting ---> Architecture ---> Build Active Architecture only ---> Yes
This solved my issue for using old cordova versions in new Xcode 5
I had the same problem and the issue was that I have accidently imported a .m file instead of .h in an implementation file - hope it helps
libCordova.a, file was built for archive which is not the architecture being linked (armv7s)
Looks like your copy of libCordova framework does not contain a armv7s binary.
You need to change the Architectures in the CordovaLib project, not in your lite_test project. I assume when you said you tried changing the Architectures, you only tried in your project and not the Cordova project (since changing in Cordova worked for me) . Remember that Cordova is a dependent project and is compiled into the binary each time you run.