Build failure, due to undefined symbol for architecture i386 - xcode

I am not sure what changes in the app code, and I started seeing this build failures
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ProfileViewController", referenced from:
objc-class-ref in LoginViewController.o
"_OBJC_CLASS_$_SystemViewController", referenced from:
objc-class-ref in LoginViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The code was building and running fine with iOS7.1 or 6.0, with Xcode 5. However, I was not sure of the changes, so I reverted everything. But still I am seeing this failure. It is pointing to the three classes, but at this point there is no changes in the thress classes,
ProfileViewController, SystemViewController, LoginViewController
Any help will be appreciated ! Thanks in advance !

Related

Error when building with XCODE

Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_ARImageAnchor", referenced from:
objc-class-ref in libXRPlugin.a(ios-arkit-sensor.o)
"_OBJC_CLASS_$_ARReferenceImage", referenced from:
objc-class-ref in libXRPlugin.a(ios-arkit-sensor.o)
ld: symbol(s) not found for architecture arm64 clang: error: linker
command failed with exit code 1 (use -v to see invocation)
Hello! That's the error I get when trying to compile Demo app from 8thwall
I suppose that's related to a frame work error, any suggestion? Thanks!
What version of XCode are you using? As per the 8th Wall XR documentation, a version of XCode 9.3 or higher is required.
https://docs.8thwall.com/#requirements

Adding BleshSDK Framework

I have a mobile application which works on IOS platform and I am trying to add the Blesh Framework to my project.It seems like I did add the framework to the project correctly but I got a problem with building the project.
Here is the exception message:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Blesh", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks for any help or pointers to the right direction.
in Build Settings -> Other Linker Flags
add this into Debug and Release:
$(OTHER_LDFLAGS) -ObjC

Unity XCode project GooglePlayService build issue

I already added UIKit.framework,
but I will get build error in XCode below,
Anyone know how to fix that?
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_UIPresentationController", referenced from:
objc-class-ref in gpg(GPGToastView.o)
"_OBJC_CLASS_$_UIUserNotificationSettings", referenced from:
objc-class-ref in gpg(GPGManager.o)
"_OBJC_CLASS_$_UIMutableUserNotificationCategory", referenced from:
objc-class-ref in gpg(GPGManager.o)
"_OBJC_CLASS_$_UIMutableUserNotificationAction", referenced from:
objc-class-ref in gpg(GPGManager.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
XCode version:5.1.1
You want to check the Other Linker Flags and make sure you added -ObjC.
When you build the XCode project out from Unity, the Google Play Games plugin shows a dialog with instructions on how to build the project in XCode.
These instructions are noted in the documentation too at https://github.com/playgameservices/play-games-plugin-for-unity#building-for-ios.

hid api building error in XCode

I'm trying to test this hid api for MAC in XCode by creating a project type "Core Foundation" just by importing the "hidapi/hidapi.h" library and replacing the "mac/main.c" files into the project. After adding the IOKit framework, and trying to build I got an error saying:
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.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've looked into this error here and on the internet, but it seems that this error it's not related to specific problem, it occurs depending on the situation. Can you give me a help?
Thank you very much.

Meaning of XCode clang error "not found in architecture i386"

I'm not sure what these errors mean or what to do about them. I moved a folder and some files around in Finder, and then added them back to my project.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_IASKSettingsReader", referenced from:
objc-class-ref in IASKAppSettingsViewController.o
"_OBJC_CLASS_$_IASKSettingsStoreUserDefaults", referenced from:
objc-class-ref in IASKAppSettingsViewController.o
"_OBJC_CLASS_$_IASKSpecifierValuesViewController", referenced from:
objc-class-ref in IASKAppSettingsViewController.o
"_OBJC_CLASS_$_IASKPSTitleValueSpecifierViewCell", referenced from:
objc-class-ref in IASKAppSettingsViewController.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 followed by these error messages (which I can't copy as text)
I had just compiled successfully before the files were moved and added.
The class IASKSettingsReader/IASKSettingsStoreUserDefaults/... is not being linked. Please check that you have it included on your Xcode project and in the Build Phases of your project under Compile Sources, if not add them.

Resources