Failed Xcode build: no rule to process file for architecture armv6 - ios

Building my iOS App in Xcode 4.5 results in Dependency Analysis Warnings for every source file:
warning: no rule to process file of type sourcecode.c.objc for architecture armv6
This eventually results in a missing binary. Any ideas what's wrong here?
Build settings: armv6 armv7 Valid Architectures and iOS 4.3 Deployment Target.

Xcode 4.5 does not support building armv6 binaries anymore.

Set Valid Architectures to armv7.

Related

How to switch flutter plugin architecture from arm64 to armv7

When I tried to decrease my flutter app's deployment target (iOS 12 to 9.3), I received this error when running flutter build ios:
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
fatal error: lipo: -extract armv7 specified but fat file:
/Users/xxx/development/myapp/build/ios/Release-iphoneos/Runner.app/Frameworks/flutter_webview_plugin.framework/flutter_webview_plugin does not contain that architecture
Failed to extract armv7 for /Users/xxx/development/myapp/build/ios/Release-iphoneos/Runner.app/Frameworks/flutter_webview_plugin.framework/flutter_webview_plugin. Running
lipo -info:
Architectures in the fat file: /Users/xxx/development/myapp/build/ios/Release-iphoneos/Runner.app/Frameworks/flutter_webview_plugin.framework/flutter_webview_plugin are:
arm64
I am unable to find any information on how to change the architecture in question - can I even do this? Or is this something the plugin developer has to build in?
I would like to be able to run the app with the lowest possible iOS version for maximum compatibility.
In the project build settings, there is a section called Architectures, there you can set the ones you need. As far as I know, the latest iPhones need to use arm64, but in my picture you can see that I'm also set as valid armv7, that seems to be your problem.

Xcode 6.3 missing required architecture arm64 [duplicate]

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.

Xcode Validating App: No architectures?

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

Can you make Xcode 5.1 target dependencies build only valid architectures?

With Xcode 5.1 Apple has made $(ARCHS_STANDARD) include arm64. If your project does not support arm64 you can simply change the architecture build setting to $(ARCHS_STANDARD_32_BIT) and it will not build arm64.
However if you have a target dependency that uses $(ARCHS_STANDARD) it will build arm64 and you will get an error because your project is expecting symbols that are not arm64.
Is there a way to make your target dependency aware what you are building against so it will build the valid architecture?
Our quick fix was to leave the Architectures entry as $(ARCHS_STANDARD) but change Valid Architectures to armv7 and armv7s until the third party libraries we're using are updated.

XCode 4.3.2 Application executable is missing a required architecture. At least one of the following armv7

I have installed XCode 4.3.2 on Lion 10.7.3
I try to distribute my application in AppStore, but when I do validate, I get error message:
"iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv7", but i have this architecture in target settings.
I added "armv6" to Architectures in Build Settings (as recommended by many people), but it's didn't work for me.
Here are Build settings of my project:
---Architetures---
Architetures - Standard (armv7)
Release - Standard (armv7)
Base SDK - Latest iOS (iOS 5.1.)
Build Active Architecture Only - No
Supported Platforms - iphonesimulator iphoneos
Valid architectures - armv7
---Build Options---
Build variants - normal
Compiler for C/C++/Objective-C - Default compiler (Apple LLVM compiler 3.1)
Responding to the updated question in your comment:
To drop armv6 support under Xcode 4.5.x, raise the iOS Deployment Target to 4.3 or higher, and remove armv6 from the build architectures and active architectures for your Target.
Added: You can't do this if you included any 3rd party libraries that are armv6-only, until you get newer updated libraries.
I just updated Firemonkey by Update 4 Hotfix 1 and it's all compiled.
http://blogs.embarcadero.com/ao/2012/04/12/39245
Thanks to all!

Resources