Undefined symbols for architecture x86_64 MaxstSDK - ios

When adding the SDK i get this compile error
ld: warning: ignoring file /Path/To/Project/MaxstVideoFramework.framework/MaxstVideoFramework, missing required architecture x86_64 in file /Path/To/Project/MaxstVideoFramework.framework/MaxstVideoFramework (2 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_MasCameraDevice", referenced from:
objc-class-ref in ScanForCouponsViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am using swift.
Does any have an idea on how to fix this ?
Thanks

Try in this terminal this code:
lipo -info /path/to/your/framework/binaryfile
Maybe the framework doesn't support architecture x86_64.
Also you should read the SDK documents, maybe you missed some settings just like "Other linker Flags".

Related

Undefined symbols for architecture armv7: "_OBJC_CLASS_$_MPMusicPlayerController"

Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_MPMusicPlayerController", referenced from:
objc-class-ref in liblibPDRCore.a(PGDeviceStatus.o)
ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
One of my lib was manually dragged into project before now I have it installed by cocoapods ,then the problem occurred. And I tried add the MediaPlayer.framework(although I don't need this framework before) to my project,the problem becomes this : ld: 14 duplicate symbols for architecture armv7
Anyone can help me 🙏?
I had same problem, but then I added MediaPlayer.framework like this

symbol(s) not found for architecture x86_64 in swift project

I convert java to objective-c,and import it into a swift project by bridging-header file.
When i build the swift project, get the following error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_DTPeople", referenced from:
type metadata accessor for __ObjC.DTPeople in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have set the correct dir for libjre_emul.a

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

Undefined symbols for architecture x86_64 in iOS Framework

I tried to modified some settings to generate AsyncNetwork iOS framework.
(you can find the original AsyncNetwork from https://github.com/jdiehl/async-network)
But I got the following warning and error when using this framework I generated for iOS in my project:
ld: warning: ignoring file /MyProjectName/AsyncNetwork.framework/AsyncNetwork, missing required architecture x86_64 in file /MyProjectName/AsyncNetwork.framework/AsyncNetwork (2 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AsyncClient", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any suggestion? I am testing whether AsyncNetwork (based on another great library, CocoaAsyncSocket) can perform better than MCSession in data transmission.
Thank you for precious time on my question.
You have to make a lipo to include some slices in same the .a.
There is an exemple:
lipo -create -output lib_name.a lib_name_device.a lib_name_simulator.a
You can find a tutorial here: https://www.raywenderlich.com/41377/creating-a-static-library-in-ios-tutorial

Facebook sdk compiling error

What does this error mean?
ld: warning: ignoring file /Users/pramonowang/Desktop/FacebookSDK/Bolts.framework/Bolts,
↳ missing required architecture x86_64 in file
↳ /Users/pramonowang/Desktop/FacebookSDK/Bolts.framework/Bolts (2 slices)
Undefined symbols for architecture x86_64:
"_builtInOpenGraphObjects", referenced from:
-[RPSGameViewController shareGameActivity] in RPSGameViewController.o
-[RPSGameViewController createGameObject] in RPSGameViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You seems to have problem with Architecture. Check this:
As the normal $ARCHS_STANDARD now includes 64-bit. You can also do $(ARCHS_STANDARD) and armv7s. Just include $ARCHS_STANDARD as architecture. Hope this helps.. :)

Resources