Fork us on GitHub

File Chooser on Xcode 10.1

Changes in the latest xcode require changes in your provisioning
File Chooser on Xcode 10.1

File Chooser on Xcode 10.1

The recent migration to xcode 10.1 broke builds for apps using the file chooser API. In order to use that API we need to make changes to the provisioning profile to include iCloud support. With the new version you must have a container associated with iCloud for this to work.

To fix this follow these steps:

iCloud Settings
Figure 1. iCloud Settings
  • Create a new iCloud container and give it a unique name/package

  • Go back to the icloud settings edit mode and select the new container in the list of containers as such

Select the Container
Figure 2. Select the Container
  • Next regenerate and download the provisioning profiles, replace the ones in your app with the new provisioning profiles

Notice that this will only work with the default xcode 10.1 mode. It seems that the application loader now requires this as Apple no longer accepts binaries with xcode 9.2 that use the older approach (without containers).

ios
Share this Post:

Posted by Shai Almog

Shai is the co-founder of Codename One. He's been a professional programmer for over 25 years. During that time he has worked with dozens of companies including Sun Microsystems.
For more follow Shai on Twitter & github.