Binary upload fails with "Missing 64-bit support" - ios

I'm building Cordova app with
cordova build --device --release
uploading it to itunes connect with
pilot upload -i platforms/ios/build/device/AskPal.ipa --verbose
The publishing process using Fastlane Pilot fails with:
ERROR ITMS-90086: "Missing 64-bit support. iOS apps submitted to the
App Store must include 64-bit support and be built with the iOS 8 SDK
or later. We recommend using the default "Standard Architectures"
build setting for "Architectures" in Xcode, to build a single binary
with both 32-bit and 64-bit support."
The way I'm "fixing" this is by deleting the ios platform from Cordova, and then reinstalling it with coordova platform add ios.
Please tell me there is a way to specify the those build architectures in the Cordova configs.

it is not working
Build Active Architecture

Related

Adobe Flash IOS build TMS-90184: Invalid architectures

I am trying to publish Adobe flash iOS build to store but stuck with below error. I am using latest Adobe flash builder and ant to build the app. The Transporter doesn't complaint anything.
ITMS-90184: Invalid architectures - This app has invalid architecture,
and may have been built with invalid build settings or incompatible
tools. Try rebuilding the app with the latest Xcode version. If you
are using third party development tools, contact the provider.
Update your flex SDK with air SDK 33.1
set MinimumOSVersion to 8.0 or higher (if build with ane, set it in platform.xml either)

Can't build app for iOS devices with Ionic 3

I'm developing an app for android and iOS.
I'm using firebase to receive push notifications. When I build for Android, it works fine, but no luck with iOS.
I followed a tutorial for firebase, put the GoogleService.plist on resources folder. I've created the authentication key on Apple Developer Website. I have a paid Apple developer account.
I used cocoapods to install dependencies of the project.
But, when I run, using the Xcode 10, I got this error:
Plugins/cordova-plugin-firebase/Protobuf.framework/Protobuf(Wrappers.pbobjc.o)
ld: 585 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Anyone have the same issue?
Thanks
Make sure you're using the following command to build:
Development
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
Production
ionic cordova build ios --prod --release -- --buildFlag="-UseModernBuildSystem=0"
as discussed by the ionic dev team, the new build system of xcode is not supported yet, then you should use the older one.
When opening the project in Xcode, if you're using a plugin that use cocoa pods as dependence manager, Google Maps is a example, you should open the ProjectName.xcworkspace file instead of ProjectName.xcodeproj as the xcworkpace knows how to compile a cocoa pods plugin dependece based.
ionic cordova build ios --prod --buildFlag='-UseModernBuildSystem=0'
Just as a side note that you will stumble upon, XCODE exposes a Signing bug, so untick the “Automatically manage signing” and tick again in XCODE.

Ionic Xcode build, Apple Mach-O Linker Error

I know this has been posted about a million times but I still can't figure out what's going on.
This is an Ionic 3 project that already works and builds fine on Android. I am now trying to build it for iOS and I'm getting this error when building in Xcode. I already checked my Link Binary With Libraries build phase and there are no pod files in there. Also I am in the .xcworkspace file, not the .xcodeproj.
Apple Mach-O Linker Error
Linker command failed with exit code 1
When I build using ionic cordova build ios I get an error code 65 for build command xcodebuild.
Edit: After some more digging I think I found a more specific error, Framework not found FileProvider for architecture x86_64.
I would like to give an alternative here. That is you can use Ionic Package service.
Ionic Packages makes it easy to build a native binary of your app in
the cloud. Perfect for developers using Windows that want to build iOS
apps.
This lets you:
Send your packaged app to others
Build your app for platforms not supported by your computer (e.g. iOS
builds on Windows)
Build .ipa and .apk files that you can submit to app stores

How to configure Cordova 6.4 to build for 64-bit for iOS 10.1?

I am using Cordova 6.4.0. I have been able to successfully build IPA's for both AdHoc and iTunes Store submission.
Recently we started testing on iOS 10.1, and we are getting the error "This app may slow down your iPhone".
The issue is of course 32-bit versus 64-bit targeting.
However, in all my searching of the youbooks and stacktubes and faceexchanges on all of the interwebs I have not found the answer.
How to pass flags to "cordova build ios --device" so that it will not give this warning on iOS 10.1?

Running an iOS application in a device with iOS 5.1.1, using Xcode 5

I am trying to install an iOS application in my iPad running in iOS 5.1.1. When i launch it with Xcode with the development profile, i am getting the following errors :
Xcode cannot install or launch applications supporting the 64-bit
architecture on devices running iOS versions prior to 6.0. This
configuration is supported for distribution through the iOS App Store,
but cannot be used during development with Xcode. To continue, edit
the Run scheme action and select a build configuration that does not
include the 64-bit architecture.
I have tried to change the building architecture by removing the arm64 but i have the same error.
I have tried to install it with testflight by building an ipa with an adhoc provision profile but the same error repeats.
How i can test my application in real device running iOS 5.1.1, building with Xcode 5
You need to make a test target that has no arm64 within valid architectures.
See screenshot, check that you don't have arm64.
Changing the Build Active Architecture Only to Yes for the Debug scheme fixed this for me. This is shown in the screen shot of the accepted answer and it's possible that is the real solution, rather than what the accepted answer describes.

Resources