Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode build failing no relevant error messages displayed

Tags:

xcode

ios

flutter

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>
like image 383
Mthandazo Edwin Siziba Avatar asked Nov 21 '20 02:11

Mthandazo Edwin Siziba


People also ask

How do I clean up and build in Xcode?

To clean the build folder you can use the shortcut Command+Option+Shift+K or Menu Bar → Product → Hold Option Key → Clean build Folder .

How do I clear errors in Xcode?

Quit Xcode and relaunch, or unpair and reconnect the device. If you resolve the error (e.g. unlock the device), the error should disappear, but if the error has appeared multiple times, it may only clear the last error.


1 Answers

Cleaning the build folder (Cmd+Shift+K) helped me resolve the invalid reuse after initialization failure issue

like image 86
Prince Kumar Avatar answered Oct 31 '22 02:10

Prince Kumar