i'm building https://github.com/jvanakker/tvOSBrowser <- this browser project for Apple TV (4th gen), OS 11.3. Xcode 9.3 (stable) and i get following error:
ld: in
/System/Library/PrivateFrameworks/UIFoundation.framework/UIFoundation', missing required architecture arm64 in file
/System/Library/PrivateFrameworks/UIFoundation.framework/UIFoundation (2 slices) for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
On AppleTV simulator it works quite well, but on actual hardware it fails...
Related
I have developed an application where i used the zbar sdk. It was working well in xcode 4.5, but recently i have updated to xcode 5. Now when i want to archive my app for app store, it shows the following error.
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/codemenmini2012-2/Desktop/QRTime (Zbar)/libzbar.a file '/Users/codemenmini2012-2/Desktop/QRTime (Zbar)/libzbar.a' for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How to solve the issue? Thanks in advance.
remove armv7s from valid architecture in project targets.
How to solve ld: file is universal (2 slices) but does not contain a(n) armv7 slice: /Users/admin/Downloads/FaceDetect/libcv.a for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation) error in iphone opencv project
You need to change the architecture armv7.
and change the compiler GCC to LLVM.
I have added adMob in a phonegap iOS project. It works fine in simulator But when I tried to build it in real device it shows me error and build failed.
errors message:
duplicate symbol _GAD_MD5 in:
/Users/prium/Documents/phonegap/projects/Diamond-mixer-iOS/GoogleAdmobiOS/llibGoogleAdMobAds.a(md5.o)
/Users/prium/Documents/phonegap/projects/Diamond-mixer-iOS/GoogleAdmobiOS/llibGoogleAdMobAds.a(gad_md5.o)
ld: 1 duplicate symbol for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please help.
check out for Build settings-->architectures-->armv7 and armv7s. JUST put armv7
adding armv7 and armv7s to architecture should work
How can I get the libmysqlclient.a for armv7s so I can use it for my iPhone 5 to? Now I get this error:
ld: file is universal (6 slices) but does not contain a(n) armv7s slice: /Users/x/Documents/Xcode/Projecten/DirectMySQL/DirectMySQL/Objc_Mysql_iPhone_OSX/lib/libmysqlclient.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks,
Daan!
Remove the armv7s from the architecture build settings. This is not necessary for anything other than high performance games on the iPhone 5 processor. Apple's default project include the armv7s but you don't need it.
I am developing a application in iOS which compile on iOS 5.0 perfectly .But Unable to compile on xCode on iOS 5.1 .The fallowing problem is arising.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SenTestCase", referenced from:
_OBJC_CLASS_$_RFAPITests in RFAPITests.o
"_OBJC_METACLASS_$_SenTestCase", referenced from:
_OBJC_METACLASS_$_RFAPITests in RFAPITests.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is a linker problem. The code or library that defines SenTestCase needs to be added to the appropriate compile or link phase for your target depending on whether it's in source or binary form.