Osmar Kozan Jr
Osmar Kozan Jr

Reputation: 185

Xcode can't generate archive correctly

In my case, after updating the libraries in Flutter's pubscpec.yaml, I could no longer generate Product > Archive for distribution in Xcode. The archive was generated as other items instead of iOS App, so I couldn't upload the app to the App Store.

enter image description here

Upvotes: 0

Views: 18

Answers (1)

Osmar Kozan Jr
Osmar Kozan Jr

Reputation: 185

My problem was solved by changing the podfile and changing the order of the build phases of my runner.

Within the PodFile, within the post_install I added the following snippet:

unless target.name == 'Runner'
    config.build_settings['SKIP_INSTALL'] = "YES"
  end

enter image description here

In my Runner's Build Phases, I needed to leave it in this sequence:

  • "Embed Foundation Extensions" below "Copy Bundle Resources"
  • "Embed Foundation Extensions" above "Thin Binary"

enter image description here

Upvotes: 0

Related Questions