I am using xcode 7.3 and using PubNub library. The build runs fine on simulator but fails while running on actual device.
Here is the error that I see :
ld: warning: ignoring file /Users/supercomputer/Documents/SitbaqApp/iPhoneDriverApp/CocoaLumberjack.framework/CocoaLumberjack, missing required architecture armv7 in file /Users/supercomputer/Documents/SitbaqApp/iPhoneDriverApp/CocoaLumberjack.framework/CocoaLumberjack (2 slices)
ld: warning: ignoring file /Users/supercomputer/Documents/SitbaqApp/iPhoneDriverApp/PubNub.framework/PubNub, missing required architecture armv7 in file /Users/supercomputer/Documents/SitbaqApp/iPhoneDriverApp/PubNub.framework/PubNub (2 slices)
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_PubNub", referenced from:
type metadata accessor for __ObjC.PubNub in AppDelegate.o
"_OBJC_CLASS_$_PNConfiguration", referenced from:
type metadata accessor for __ObjC.PNConfiguration in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have the $(inherited) flag in the OTHER LINKER FLAGS. I am not using cocoa pods for pubnub. It is framework drag and drop.
Now I am unable to run the app on actual device.
Any suggestions ?
I had same issue but when i use pod so i solved this issue. pod get automatic dependancy.
pod setup.
Related
I am working with a project and in that I want to integrateing a tapku calendar. I followed all the steps and integrated the calendar. But unfortunately I am getting the error due to which my build is failing again and again. The error is as below:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_TKCalendarMonthView", referenced from:
objc-class-ref in habitstatisticsViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Set "Build Active Architechtures" to YES and make sure you have armv6 also within your valid architechtures along with arm64, armv7 and armv7s.
I Have added Addmob sdk in my project and even added all framework needed. But m getting below error for StoreKit framework even i have added it in my project but still getting error..
ld: warning: directory not found for option '- L/Users/company/Downloads/projectname/GoogleAdMobAdsSdkiOS-6.4.2/Add- ons/GoogleAnalyticsiOS_2.0beta4/Library'
ld: warning: directory not found for option '-L/Users/company/Downloads/projectname/GoogleAdMobAdsSdkiOS-6.4.2'
ld: warning: ignoring file /Users/company/Downloads/StoreKit.framework/StoreKit, missing required architecture i386 in file /Users/company/Downloads/StoreKit.framework/StoreKit (2 slices)
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o)
"_SKStoreProductParameterITunesItemIdentifier", referenced from:
-[GADOpener openInAppStore:fallbackURLString:] in libGoogleAdMobAds.a(GADOpener.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I search a lot but in every post its sid to add Storkit.. but i have already added it but still getting error. even i have cleaned the project a lot of time.
Just ensure that you have added the following libraries,
1.AudioToolbox
2.MessageUI
3.SystemConfiguration
4.CoreGraphics
Also the frameworks,
1.MessageUI.framework
2.StoreKit.framework
3.SystemConfiguration.framework
According to your error message there is a problem with StoreKit.framework...Please verify that...
Refer: build error when add Admob in iOS app
Add AdSupport.framework, also make it as optional
It says that your StoreKit binary is not build for i386. This should not happen with the default one. Did you download if separately from somewhere? You can find the default here:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/StoreKit.framework
Use that.
When I run my XCode project using sqlite3, I keep getting the same two errors (appearing between **):
Undefined symbols for architecture i386:
**"_OBJC_CLASS_$_CalendarDatabase", referenced from: objc-class-ref in AppDelegate.o**
ld: symbol(s) not found for architecture i386
clang: error: **linker command failed with exit code 1 (use -v to see invocation)**
I looked everywhere for an answer but all I find is problems with importing sqlite3 and including frameworks. But I've included libsqlite3.0.dylib and libsqlite3.dylib and I've imported sqlite3 using #import "sqlite3.h". I'm still getting these errors. What could be the problem?
In the error message, the words for architecture i386 tells me that your dylibs do not have i386 code (only x86_64). If you're compiling for i386 (32 bits), you'll need either fat dylibs (x86_64 + i386), or 32-bit dylibs.
I'm having a problem with building my iPhone app..so, i finally finished it, but now when i try to test or profile my app , a error shows up..
Undefined symbols for architecture armv7:
"_STComposeString", referenced from:
-[TaxiApp_Tests testExample] in TaxiApp_Tests.o
"_OBJC_CLASS_$_SenTestCase", referenced from:
_OBJC_CLASS_$_TaxiApp_Tests in TaxiApp_Tests.o
"_OBJC_METACLASS_$_SenTestCase", referenced from:
_OBJC_METACLASS_$_TaxiApp_Tests in TaxiApp_Tests.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Are you running it in the simulator? Based on the answer here:
XCode 4.3 - Build error "missing required architecture armv7"
your testing framework will not run properly on the iphone.
I am getting following error while trying to use pdf.h and pdf.mm in my application.
ld: warning: ignoring file /Users/aditya/Desktop/PDFStudy/zdll.lib, file was built for archive which is not the architecture being linked (i386)
"_convertPDF", referenced from:
-[PDFStudyViewController readPDF] in PDFStudyViewController.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
This is because your library /Users/aditya/Desktop/PDFStudy/zdll.lib was compiled for other architectures, for example, arm6 or arm7 used in iPhones.
You are probably testing your app in simulator, which requires library to be compiled for architecture i386.