Just upgraded to Xcode 5.1, getting the following error:
ignoring file
...Dependencies/SalesforceNetworkSDK/libSalesforceNetworkSDK.a,
missing required architecture arm64 in file
...Dependencies/SalesforceNetworkSDK/libSalesforceNetworkSDK.a (3
slices)
If I turn off build active archs only and remove arm64 from valid archs I get:
Build/Products/Debug-iphoneos/libPods.a, file was built for archive
which is not the architecture being linked (armv7)
According to apple's release note, see the following note point.
Note:
Be aware of the following architectures issues when opening your
existing projects in Xcode 5.1:
When building for all architectures, remove any explicit
architectures setting and use the default Standard Architectures
setting. For projects that were previously opted-in using “Standard
Architectures Including 64-Bit”, switch back to the “Standard
architectures” setting.
When opening an existing project for the first time, Xcode 5.1 may
display a warning about the use of the Xcode 5.0 architectures
setting. Selecting the warning provides a workflow to revise the
setting.
Projects not able to support 64-bit need to specifically set the
architectures build setting to not include 64-bit.
So you've to set architecture as below to support libs architecture.
Reference from this post.
Update: From May 15, you've to take build from 5.1.1, see this post.
Don't know previous iOS but Setting Build Active Architecture Only to YES in iOS 8 did the trick.
I ended up getting my project to build by (1) turning off build active archs only (2) removing arm64 from valid archs and (3) making sure that the Pods project was building for only armv7 and armv7s.
Also worth noting here, that at the time of writing this edit, Salesforce mobile SDK was not available for arm64
I just changed the Debug from Yes to No,
Build Settings -> Architectures -> Build Active Architecture Only -> Debug -> NO.
This one fixed my error.
Related
I am trying to solve a problem related to Xcode 12, building for iOS Simulator, but linking in an object file built for iOS, for architecture 'arm64'
As an experiment, I wanted to see if I could configure one of my frameworks to only build x86_64 for all cases.
Here is my config:
You can see I have overridden the architectures to be x86_64 and I am excluding arm64. I am also only building active architectures only. There is no way that arm64 should ever be considered during a build.
And yet...
Here is the output of a build the very next moment. It's tons of source files that indicate they are still being compiled for arm64.
Can anyone explain this discrepancy? I am running the latest Xcode, 13.2.1, on a new M1 Max laptop.
I upgrade my xcode recently.
When I build my iOS frameworks towards My Mac, most of them works fine. However one framework build failed. The error as follow:
My Mac doesn’t support any of XXX.framework’s architectures. You can add My Mac’s x86_64h architecture to XXX.framework’s Architectures build setting.
I have tried add x86_64h, x86_64, and arm64e to valid architecture, but it doesn't work.
I also tried to compare build settings between these frameworks, but failed to find out an solution.
Any suggestion to solve this problem?
I had the same issue, then I changed Valid Architectures to arm64 x86_64.
After this, I was able to build the framework and use it.
i using xcode 5.1 and i would like to validate my product. Here is the error, that i get:
No architectures in the binary. Lipo is failed to detect any architectures in the bundle executable
I have Standard Architectures in the Build Settings and armv7 and armv7s in Valid architectures(i tried even with all of them) and Build active architectures is set to No.
I have no idea what happening here. I think if i can't resolve this I'll Distribute it without Validation... Please help me
My Deployment target is 7.0
Check your target deployment target and Architectures.
Kindly refer this link as well Xcode 5 and iOS 7: Architecture and Valid architectures
I am trying to update an application for the Apple App Store and when I attempt to validate it it fails with error "iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv6". The problem is that I don't reference armv6 that I can find and my ios deployment target is 4.3. I am using xcode 4.5.1.
Settings:Architectures -> "armv7, armv7s" for all configurations.
I have already tried the information recommended here as well as other things with no success.
iOS 6 - "application executable is missing required architecture: armv6"
The ios deployment target must be set for both the project and the target application.
Add armv6 to the architecture if your deployment target less 4.3
I am submitting an app and i am getting an warning "warning: iPad only apps should not include an armv6 architecture (current ARCHS = "armv6 armv7")." please advice how to remove this warning?
You need to change your the Architectures in you build settings, see this SO question: Warning iPhone apps should include an armv6 architecture even with build config set which is the opposite of your warning.
More specifically, go to Project → Build Settings → Architectures.
Then, change your architecture to Standard (armv7).