Xcode 5.1: Libcordova.A Architecture Problems

xcode 5.1: libCordova.a architecture problems

@Shazron posted the fix on the Apache JIRA - he notes that the fix will be released as part of Cordova 3.5:

  1. Select your Project icon
  2. Choose Build Settings.
  3. For "Architectures", select $ARCHS_STANDARD - Standard architectures (armv7, armv7s, arm64)
  4. For "Valid Architectures", add "arm64"
  5. Select your CordovaLib.xcodeproj icon
  6. In the Build Settings for the Project (not Target), delete the conditional architecture settings (hover to see the minus sign)
  7. For "Architectures", select $ARCHS_STANDARD - Standard architectures (armv7, armv7s, arm64)
  8. For "Valid Architectures", add "arm64"
  9. Goto 6, but now do it for "Target"

Here's a link to Shazron's complete writeup of this problem: http://shazronatadobe.wordpress.com/2014/03/12/xcode-5-1-and-cordova-ios/

It is now released and the short version of what to do is:

Cordova CLI 3.4.1-0.1.0 is out, which includes Cordova iOS 3.4.1 which incorporates all the fixes mentioned in this blog post. Update your Cordova CLI, and if you have an existing project, do a “cordova platform update ios“.

xcode 5.1: libCordova.a architecture problems

@Shazron posted the fix on the Apache JIRA - he notes that the fix will be released as part of Cordova 3.5:

  1. Select your Project icon
  2. Choose Build Settings.
  3. For "Architectures", select $ARCHS_STANDARD - Standard architectures (armv7, armv7s, arm64)
  4. For "Valid Architectures", add "arm64"
  5. Select your CordovaLib.xcodeproj icon
  6. In the Build Settings for the Project (not Target), delete the conditional architecture settings (hover to see the minus sign)
  7. For "Architectures", select $ARCHS_STANDARD - Standard architectures (armv7, armv7s, arm64)
  8. For "Valid Architectures", add "arm64"
  9. Goto 6, but now do it for "Target"

Here's a link to Shazron's complete writeup of this problem: http://shazronatadobe.wordpress.com/2014/03/12/xcode-5-1-and-cordova-ios/

It is now released and the short version of what to do is:

Cordova CLI 3.4.1-0.1.0 is out, which includes Cordova iOS 3.4.1 which incorporates all the fixes mentioned in this blog post. Update your Cordova CLI, and if you have an existing project, do a “cordova platform update ios“.

Xcode 5.1: missing required architecture arm64

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.

Sample Image

Reference from this post.

Update: From May 15, you've to take build from 5.1.1, see this post.

The plugin didn't work on xcode 5.1

I edited Info.plist file like this:

Add A2E4D43F-41F4-4FB9-BB94-7177011C9AED into key DVTPlugInCompatibilityUUIDs

It works for CocoaPods, Dash plugin. I'm trying with others.

Hope it works for you!

Source:
https://github.com/omz/Dash-Plugin-for-Xcode/commit/989b3aad46f5a30efacd7c23432ce7343d84cc58

Architecture Build Settings Won't Change in Xcode 5.1

Your Architectures value will currently be set to $(ARCHS_STANDARD), which as of Xcode 5.1 includes arm64. You should certainly be able to edit the value - just double click it like you would any other value in the Build Settings.

To remove arm64, you can change the value to $(ARCHS_STANDARD_32_BIT), which just includes armv7 and armv7s. You may also need to edit Valid Architectures to remove arm64 from there.

However, if possible, you should try and ensure you support arm64 within your app.



Related Topics



Leave a reply



Submit