I'm trying to create a simple static library and add it into another project. I found several tutorials explaining how to do this, and it seems like each one is a little different. The most recent one I found seems to be the simplest, so that is the one I recreated.
When I try to build the project I'm accessing the library from, I get an "Apple Mach-O Linker Warning - Ignoring [my .a file], missing required architecture i386 in file [my .a file](2 slices)", as well as "Apple Mach-O Linker Error" twice. I'm guessing the problem is that it's ignoring my .a file, and that's whats causing the errors, so fixing the warning should take care of the errors too. Some of the users in that thread seem to have posted about this issue there, but it doesn't look like there's been any response as to how to fix it. Does anyone know what this tutorial is leaving out that is causing these errors?
xcode 4.5 doesn't support armv6, remove it and the the library file will be created...
https://developer.apple.com/library/mac/#releasenotes/DeveloperTools/RN-Xcode/_index.html
General: iOS This version of Xcode does not generate armv6 binaries. 12282156 The minimum deployment target is iOS 4.3. 12282166 In this Xcode release, Auto Layout is turned on for new user interface documents (storyboards and nib files). Because Auto Layout requires iOS 6.0, using such user interface documents on earlier iOS releases results in a crash or other undefined behavior. 12289644 For your app to run on earlier iOS releases, turn off Auto Layout in its user interface documents.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With