armv7s three20 xcode 4.5 - three20

how can I use three20 with the new xcode 4.5?
I got this message :
(null): Symbol(s) not found for architecture armv7s

Go into the framework settings, and change the target from armv6/armv7 to "armv7 armv7s" and compile again.

Related

Switched Firebase Crashlytics from CocoaPods to Swift Package now Simulator won't build on a M1 Mac

Just removed Crashlytics from the podfile, then added it as a Swift Package. Built for an actual device just fine. But when I switch to the Simulator, no go (and tried deleting Derived folders etc - no change).
Another dev using Xcode 13.2.1 on an Intel Mac can build for the Simulator just fine.
Doesn't matter if I delete DerivedFolder then build first for Simulaor or for device - when I get to Simulator it always fails same errors.
The Excluded Architectures for everything are arm64, Build Active Architure=YES
Xcode 13.4.1
Mac: Monterey 13.4
ld: warning: ignoring file .../Build/Products/Debugging-iphonesimulator/FirebaseCrashlytics.o, building for iOS Simulator-x86_64 but attempting to link with file built for unknown-arm64
... (12 others)
ld: warning: ignoring file .../Build/Products/Debugging-iphonesimulator/FirebaseInstallations.o, building for iOS Simulator-x86_64 but attempting to link with file built for unknown-arm64
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FIRCrashlytics", referenced from:
objc-class-ref in <SomeFile>-8e51ce451b9a03f7582a9e76a8faf6a6.o
objc-class-ref in <SomeFile>-e71967da3e8b662633c9220e635ffc51.o
"_OBJC_CLASS_$_FIRApp", referenced from:
objc-class-ref in SSLog-8e51ce451b9a03f7582a9e76a8faf6a6.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 posted to Firebase Issues but this issue didn't ring a bell. However, I did trip on an Apple TN on M1 Mac build issues, and doing what they suggested revolved the issue.
It appears that when Xcode builds Packages the rules it follows may not use the target's build settings. I believe the issue was related to Excluded Architectures.
For me the issue was fixed by making sure Xcode was running in Rosetta mode.

xcode 4.5 - symbols not found for architecture i386 (zbar)

I have a project which uses the zbar-sdk (a barcode scanning library).
After updating my machine to xcode 4.5 and ios6sdk I am having some troubles.
I was able to build to the simulator without touching anything about my project. This is using the latest zbar 1.2 library.
I then wanted to build to my ios6 device for testing, and thats when I got an error.
After some googling on the zbar developer forum, I seen that I needed to get the zbar source and build the libzbar.a for armv7 and armv7s as this has not yet been done by the zbar developer.
See - http://sourceforge.net/projects/zbar/forums/forum/1072195/topic/5728912
So I did this, re-imported the updated libzbar.a into my project. I then built for my device, and it worked! I was able to get my app onto my testing device and the zbar barcode library worked fine.
I thought that was the end of it, but unfortunately not.
I then tried to build to the simulator (ios6) again, and thats when it fails.
No matter what I cannot get this project to build for both the device and simualtor at the same time and with the same settings :(
My libzbar.a project settings when building my own libzbar.a file:
Architecture: Standard (armv7, armv7s) $(ARCHS_STANDARD_32_BIT)
Build Active Architecture Only: No
Valid Architectures: armv7 armv7s
And my project settings (for myapp) as:
Architecture: Standard (armv7, armv7s) $(ARCHS_STANDARD_32_BIT)
Build Active Architecture Only: No
Valid Architectures: armv7 armv7s
Base SDK: iOS6
iOS Deployment Target: iOS 5.0
And the error when trying to build to the simulator:
ld: warning: ignoring file /Users/blah/iOS App/myapp/ZBarSDK/libzbar.a, missing required architecture i386 in file /Users/blah/iOS App/myapp/ZBarSDK/libzbar.a (2 slices)
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ZBarReaderViewController", referenced from:
objc-class-ref in mycontroller.o
"_ZBarReaderControllerResults", referenced from:
-[mycontroller imagePickerController:didFinishPickingMediaWithInfo:] in mycontroller.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried tweaking the libzbar.a project settings (e.g. build active architecture set to "YES") but this just results in neither the simulator or device working.
The fact that it works on the device but not the simulator makes me thing there is some weird architecture/project setting causing this.
Any help much appreciated!
I doubt this is the right answer but it worked for me, I compiled the new libzber.a using architectures: i386 armv6 armv7 armv7s in that order you also need to specify valid architectures as the same values. Again this is what worked for me with a recent release I needed to get out A.S.A.P. Both are found in Target -> Build Settings -> Architecures.
Also note: $(ARCHS_STANDARD_32_BIT) needed to be removed from the settings.
I fixed a similar issue by setting the iOS6 simulator architecture under OTHER_LDFLAGS in Target->Build Settings.
I forgot that I had a different command line argument for separated archituctures so I had to manually state the simulator

Xcode 4.5 and Phonegap 2.0 reference issue

Yesterday I updated new Xcode 4.5, and I got an error in my build and I am not sure how can I even fix this.
Everything works fine if I build in simulator, but when I try to build for Archive for example, i get this:
ld: warning: ignoring file /Users/corotchi/Library/Developer/Xcode/DerivedData/NJR_IR-ftjwhrqtxwedihfjrbjikbqqttkx/Build/Products/Release-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7s): /Users/corotchi/Library/Developer/Xcode/DerivedData/NJR_IR-ftjwhrqtxwedihfjrbjikbqqttkx/Build/Products/Release-iphoneos/libCordova.a
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_CDVURLProtocol", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and more errors bellow, which are the same
Everything worked fine until u updated the Xcode, I had another issue before where I read the formums that I have to remove the "ARMV6" from the build settings, cause it is not supported anymore in new IOS, and after that I get this reference issue.
I appreciate any help,
THanks!!!!
Remove armv7s from Valid Architectures from both your project and Cordova(phonegap) project. Also set iOS Deployment target 4.3 or above in both project and Cordova(phonegap) project. After that Clean and Clean Build Folder. This will solve the problem.
If you also take out armv7s from the build settings, you should get it to build for you.
Edit: As per below: Fix can be found here via PhoneGap: https://issues.apache.org/jira/browse/CB-1360
This is a bug already fixed at Cordova 2.2.0
https://issues.apache.org/jira/browse/CB-1360
Change the Buid setting ---> Architecture ---> Build Active Architecture only ---> Yes
This solved my issue for using old cordova versions in new Xcode 5

Unable to deploy Unity3d project on iPhone device because of linking errors

I have created a xcode project using unity3d tool, while building the project for iOS my Player settings are like this:
1. Target Device: iPhone Only
2. Target Platform: Universal armv6+armv7 (OpenGL ES1.1+2.0) & I have tried it with armv6(OpenGL ES1.1)
3. SDK Version: iOS 4.3 & I have tried it with iOS Latest
4. Target iOS Version: 4.0
Api Compatibility Level: .Net 2.0 Subset, when I am trying to run it in iPhone I am getting the below mentioned error:
"__GetLookupStatus", referenced from:
Undefined symbols for architecture armv6: "__GetLookupStatus", referenced from: __Z19RegisterMonoModulesv in RegisterMonoModules.o
ld: symbol(s) not found for architecture armv6 clang: error: linker
command failed with exit code 1 (use -v to see invocation)
& my Unity 3 version is 3.4.2f3 & my Xcode version is 4.2.1.
How can I resolve this issue?
It is working now. I forgot to add my Objevtive-c files into Xcode project.

Xcode linker error- armv7 slice architecture

Having archive error when want to compile into .ipa
I am using:
Mac OS X Leopard 10.6.7
Xcode 4.3 stable.
Clean and Build in simulator no error.
But
Archive for Adhoc under Latest iOS SDK (iOS 4.3) fail.
Error is as below:
Apple Mach-O Linker Error
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
..
ld: in /Users/bird/Desktop/IPHONE/test/Classes/Libraries/FlurryLib/libFlurry.a, file is universal but does not contain a(n) armv7 slice for architecture armv7
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exist code 1
Wondering way to solve it.
It looks like libFlurry does not support armv7s.
click on the Project, go to Build Settings -> find "valid architectures" and remove "armv7s" from the list.

Resources