iOS testflight sdk arm7 architecture issue - ios

I have added test flight sdk to my project and after archive it I got this error:
ld: warning: ignoring file Include/libapps-on-maps-sim.a, file was built for archive which is not the architecture being linked (armv7): Include/libapps-on-maps-sim.a
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_TestFlight", referenced from:
objc-class-ref in MTAppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can I change architecture for this file? I have architecture settings for my project and for pods $(ARCHS_STANDARD)

Related

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_InterstitialAdView", referenced from:

I have created a framework & integrated in the another app(Demo). When i run this Demo app on simulator then there is not any error...
But when do i run on device its gets error.
ld: warning: ignoring file /Users/mac/Desktop/library file/Demo/pk.framework/pk, file was built for x86_64 which is not the architecture being linked (arm64): /Users/mac/Desktop/library file/Demo/pk.framework/pk
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_InterstitialAdView", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please share your experience.
I am using Xcode 9.0
Thanks
You have to know simulator and devices have different cpu types, when you build Xcode will build the app and link the libraries according to the target type.
From the error info, it seems your framework only provide the x86_64 architecture (for simulator), you should build your framework for the device architecture (arm64) instead !

Trouble creating archive for project with my static library

I am developing a static library for iOS, now I am testing my static library (libXYZ.a) with a test project, I am able to run it on device but when I am trying
to make archive of the test project I got some errors saying:
ld: warning: ignoring file /Users/Ravindra/Desktop/SDK Project/Static Library/XYZSDKTest/XYZSDKTest/XYZ_SDK/libXYZSDK.a, missing required architecture arm64 in file /Users/Ravindra/Desktop/SDK Project/Static Library/XYZSDKTest/XYZSDKTest/XYZ_SDK/libXYZSDK.a (2 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_XYZ", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_XYZConfiguration", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I used the following command to build universal build:
lipo -create "libXYZSDK_simulator.a" "libXYZSDK_device.a" -output "libXYZSDK.a"
Please help me out to resolve this problem.

Undefined symbols for architecture x86_64 iOS

I have used cocoapods to install the upnpx library which successfully builds. But as soon as I went to build after using one of the classes In my project I am faced with this error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_UPnPManager", referenced from:
objc-class-ref in RendererView.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
SOLVED: For me, setting "Build active architectures only" to YES in build settings of the project target resolves this issue

Error : Undefined symbols for architecture

I am getting below error. It was working fine and I don't have any idea about what caused this issue.
ld: warning: ignoring file /Users/akashpatel/Developer/iOS_development/FantasyCricket/Fantasy_cricket/Library/JMC/JMCClasses/Libraries/CrashReporter.framework/CrashReporter, missing required architecture arm64 in file /Users/akashpatel/Developer/iOS_development/FantasyCricket/Fantasy_cricket/Library/JMC/JMCClasses/Libraries/CrashReporter.framework/CrashReporter (3 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_PLCrashReport", referenced from:
objc-class-ref in CrashReporter.o
"_OBJC_CLASS_$_PLCrashReporter", referenced from:
objc-class-ref in CrashReporter.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried removing and adding CrashReporter from and to project.
Select your project, go to Build Settings and have a look at the Architectures. You should delete arm64 from the Architectures and also from Valid Architectures and Build the app again.

Undefined symbols for architecture i386 and symbol not found for architecture i386

I am developing a fake static framework. I build it and included it another sample application. The sample application is running fine on iPhone(ios 7.1), but it giving below errors when i run it on simulator
ld: warning: ignoring file /Users/awsuser8/Desktop/Test.framework/Test, file was built for archive which is not the architecture being linked (i386): /Users/awsuser8/Desktop/Test.framework/Test
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Test", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You can rebuild the library for the iOS Simulator and combine it using lipo with the ARM build of the library. Then the library will support x86 builds as well.

Resources