skip to Main Content

I am attempting to build an app from flutter on iOS but when I try to run the build I get the following error: invalid reuse after initialization failure. That is all I get in terms of an error message. I tried looking online and have not found anything relevant. I thought perhaps there was something wrong with my info.plist but I cannot find any error. Below is the info.plist contents

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENTLANGUAGE)</string>
   <key>CFBundleExecutable</key>
   <string>$(EXECUTABLENAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCTBUNDLEIDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>synthexklutchrelease</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTERBUILDNAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTERBUILDNUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>NSPhotoLibraryUsageDescription</key>
<string>App needs access to photo lib for profile images</string>
<key>NSCameraUsageDescription</key>
<string>To capture profile photo please grant camera access</string>
</dict>
</plist>

2

Answers


  1. Just ran into the same issue. I fixed it by double-clicking on Runner in the files overview. This showed Identity and Type on the right-hand side. If you set Project Format (under Project Document) to Xcode 12.0-compatible it works.

    Hope the description helps. I only use the mac when testing Flutter builds for iOS, so I’m not an expert :p

    Login or Signup to reply.
  2. Cleaning the build folder (Cmd+Shift+K) helped me resolve the invalid reuse after initialization failure issue

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search