Flurry Analytics iOS archive error - ios

I successfully integrated the Flurry Analytics. But after I wanted to archive and upload to iTunes Connect, there was an error shown below:
ld: file is universal (2 slices) but does not contain a(n) armv7 slice: /Users/Frank/Desktop/Desktop/IOS/FalconTech/FalconTech/Flurry/libFlurryWatch_8.4.0.a file '/Users/Frank/Desktop/Desktop/IOS/FalconTech/FalconTech/Flurry/libFlurryWatch_8.4.0.a' for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and there is the image of showing file.

Based on the screenshot, you are not building an app that includes Watch. You can fix the error by removing the Watch Library.

Related

Facebook sdk is compiling on my IOS device, but no my simulator

I've downloaded the Facebook SDK, and gotten it to work on the simulator to post from my app, but it won't even compile on my device.
clang: error: no such file or directory: '/Users/justking14/Library/Developer/Xcode/DerivedData/Descover-fqkbngyllggoxkcskmhhzgmkffxe/Build/Products/Debug-iphoneos/libPluginFacebook.a'
clang: error: no such file or directory: '/Users/justking14/Library/Developer/Xcode/DerivedData/Descover-fqkbngyllggoxkcskmhhzgmkffxe/Build/Products/Debug-iphoneos/libPluginProtocol.a'
libPluginFacebook.a and libPluginProtocol.a are in red in the Link Binary with Libraries, and when I remove them it still won't compile saying
ld: file is universal (4 slices) but does not contain a(n) armv7s slice: /Users/justking14/Desktop/IR/cocos2d/plugin/plugins/facebook/proj.ios/sdk/FacebookSDK.framework/FacebookSDK file '/Users/justking14/Desktop/IR/cocos2d/plugin/plugins/facebook/proj.ios/sdk/FacebookSDK.framework/FacebookSDK' for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The FacebookSDK you use doesn't have machine code for the architecture armv7s
That architecture WAS top of the line but now, apps mostly only use armv7 and arm64
Change your app build settings to only use those architectures (just use the default)

Apple Mach-O Linker Error occurs after adding AFNetworking

When I add AFNetworking and build, Apple Mach-O Linker Error occur.
I saw Similar Questions but I couldn't any hints.
I added AFNetworking which is downloaded from GitHub to project.
The error message:
ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have already added following frameworks.
・CFNetwork.framework
・Accelerate.framework
・SystemConfiguration.framework
・MobileCoreServices.framework
・Security.framework
・SenTestingKit.framework
How do I do to build?
By the way, I found description #import <CoreServices/CoreServices.h> in files of AFNetworking, but such framework is not found in Xcode.
Is this alright?

Can't Archive my app before release

my app has Google Maps in it and i'm Using Parse.com as well. so in the Valid Architectures in the Build Settings i have armv7 and armv7s added together. when i archive the app, i get the following error:
ld: file is universal (2 slices) but does not contain a(n) armv7s slice: /Users/MyName/Documents/Workspace/AppName/GoogleMaps.framework/GoogleMaps for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i searched over here for solutions and i was able to eliminate it by removing armv7s from the Valid Architectures. However, when reading through the comments i learned that armv7s let's the app have full support for iphone 5. can anybody explain that? and is there a way that i can pass both armv7 and armv7s?

Xcode : Apple Mach-O linker Error

I made the app in Xcode 4.6 and tested in device. The app is made for both iPhone and iPad. When I try to archive it to make .ipa file, I get this error :
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/admin/Desktop/appName/appName/libzbar.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How to set the architecture for this in Build Settings? Or is there some different issue?
libzbar.a library needs to be built for armv7s architecture. If you cannot do that (because you don't have source code for this library) than you should remove armv7s from valid architectures.
You can change valid architectures by following steps:
select project name from the Project Navigator
select project target
open Build Settings tab
change valid architectures field

Mach O Link Error- linker command failed with exit code 1 (use -v to see invocation)

When I try building for archiving for my app in Xcode (version 4.5) I get an error that says:
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/[myrealname]/Downloads/[myappname]/BT_Objects/TwitterOAuth/SAOAuthTwitterEngine/libOAuth.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It then says under it:
(null): File is universal (3 slices) but does not contain a(n) armv7s slice: /Users/shakerite/Downloads/shakeritetestnotrealone_v15_iOS/BT_Objects/TwitterOAuth/SAOAuthTwitterEngine/libOAuth.a for architecture armv7s
Does anyone know how to solve this?
I received a very similar message just the other day when I tried running my app on my iPad after several successful attempts on the simulator. I found out that under the build settings I had to make "build active architecture only" to yes. Then my app would compile on my device. Hope this helps.
Yeah, I had this same exact problem. Click on your project in xcode. Then, click on the target. Go to build settings and look for valid architectures. Delete armv7s from the list of valid architectures and just leave armv7.
Let me know if you have any questions!
here I provide you one temporary solution that can solve this error hope its help you,
go to Project->Build Settings->Build Active Architecture Only->yes
thats it.

Resources