Errors in cordova+xcode ios build

只愿长相守 提交于 2019-12-05 14:50:33

There appears to be an issue with Cordova's iOS implementation when publishing apps created specifically using Xcode 7.

A Cordova community member has published a "cordova-plugin-ipad-multitasking" plugin with a fix.

http://npmjs.com/package/cordova-plugin-ipad-multitasking

Install this plugin and you should be all set. A future Cordova version will resolve the problem fully.

Failing that, if you are using remotebuild you can also find the native project under ~/.taco_home/remote-builds/taco-remote/builds and make the modifications as described in the Cordova bug on the issue.

EDIT:

To resolve ITMS-90339, there is a second step you can do to patch in the near term. Grab the build.xcconfig from the 3.9.x branch of the cordova-ios repo and place this under res/native/ios/cordova

Now remove this line:

CODE_SIGN_RESOURCE_RULES_PATH = $(SDKROOT)/ResourceRules.plist

Note that you will want to remove this custom build.xcconfig file if you upgrade to the version with the full patch that is forthcoming.

By default Cordova doesn't fulfill all of the requirements for multitasking support. (CB-9161) You can follow the steps on that issue to make changes directly to the iOS project for multitasking support.

  1. Use Xcode 7 (Cordova always uses the current SDK)
  2. Click your Project icon in the Project Navigator
  3. Click on your Target
  4. Select the "General" tab
  5. Go to the "Deployment Info" section
  6. Select the "iPad" button segment
  7. For "Device Orientation", select all four checkboxes (Portrait, Upside Down, Landscape Left, Landscape Right)
  8. Add a new File: Launch Screen --> "Launch Screen.storyboard"
  9. Click your Project icon in the Project Navigator
  10. Click on your Target
  11. Select the "General" tab
  12. Go to the "App Icons and Launch Images" section
  13. Select "Launch Screen.storyboard" from the "Launch Screen File" dropdown
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!