Command PhaseScriptExecution failed with a nonzero exit code Xcode - xcode

Recently I had tried adding the google_mobile_ads package to my flutter app. After deciding I didn't want them anymore I took them away, only to run into this error. Prior to the package, everything worked fine, but now I can't even run the project anymore. This is what Xcode tells me:
https://docs.google.com/document/d/13XrC2NTgQ87hlVCmLI2qiQTLhhD6vgMaQkz0ac_tQM0/edit?usp=sharing
What I've tried:
Flutter clean
Restarting Mac
Restarting Xcode and IDE
Changing simulators
Deleting iOS folder completely and rebuilding it
Any direction would be very helpful.

Related

Problems with running app In flutter simulator after reinstalling Xcode

Sorry I need help I am total new into programming/developing.
Im working om a Mac M1 and I did experience problems.
In terminal I write:
flutter create and the flutter run.
The app builds.
But when I try to run and debug in vscode this error comes up:
Expected ios/Runner.xcodeproj but this file is missing. No application found for TargetPlatform.ios. Is your project missing an ios/Runner/Info.plist? Consider running "flutter create ." to create one.
Any ideas?

How to resolve missing required file for Flutter iOS Build

I have written my first non-trivial flutter app and have successfully built and run it on both the Android and iOS simulators and an Android device (MOTO G7). In attempting to build it for an Xs Max connected to my iMac I get the following error during the Xcode build:
/Users/dev/FirstApp/ios/Runner/GeneratedPluginRegistrant.m:6:9: 'path_provider/PathProviderPlugin.h' file not found
I have searched the disk and found the following:
/Users/dev/FirstApp/build/ios/Debug-iphonesimulator/path_provider/path_provider.framework/Headers/PathProviderPlugin.h
/Users/dev/FirstApp/build/path_provider/intermediates/javac/debug/compileDebugJavaWithJavac/classes/io/flutter/plugins/pathprovider/PathProviderPlugin.class
I have googled and checked SO for various hints/solutions. None of the, few, suggested fixes has worked for me. My Flutter Doctor -v command display all checkmarks and no issues.
Am I missing something? Is this a Flutter/Xcode bug? I am using Xcode 10.3 and Flutter 1.7.x. Any suggestions or outright fixes would be appreciated.
In your xcode Open the *.xcworkspace file instead of *.xcodeproj file then
Product>Clean
Product>Archive
and waiting

Failed to find a suitable device for the type IBSimDev

I'm getting the following 2 errors that seem that alternate every time I try to build. I just upgrade my iOS to 12.2 which forced me to upgrade my osx to Mojave 10.14.4 and my xcode to 10.2.
Failed to find or create execution context for description.
Filed to find a suitable device for the type IBSimDeviceTypeiPad2x in
Assets.xcassets
This I have tried:
Cleaning Build Folder (repeatedly)
Closing and restarting Xcode and the simulator
Deleting Derived Data
I had faced the same issue my issue resolved by doing:
Clean build folder (shift + command + K)
Restart your system (Mac)
Note: Also missing simulator after updating to Xcode 10.3 fix by this solution.
Run this command in the terminal to make sure all simulator process in the background are killed :
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
Well I don't know how many other people this is going to help out but here was my issue:
I poked around and finally got another error that said that my simulator runtime is not available. What ended up solving it was simply restarting my macbook found from this thread: The iOS 8.1 simulator runtime is not available error in Xcode 6.1

Cordova Build causing xcodeBuild to quit unexpectedly

I've got a basic react app running in Cordova, when I run a
cordova build ios
Things seem to work OK but then after a short delay I get the following:
If I run a
cordova run ios
I get the following
No target specified for emulator. Deploying to iPhone-X, 12.1
simulator
/Users/Liam/code/ProjectName/app-src/platforms/ios/build/emulator/ProjectName/Info.plist
file not found.
I've done the usual, clean, remove platform, re-add platform but same issues. Any ideas what causes this or how to debug further?
I can run the Cordova App from XCode

XCode 4.6.3 showing link error ibtool failed with exit code 10

I installed XCode 4.6.3. Initially I was able to successfully able to build and run my code on it. However, all of a sudden when trying to configure my build on my iOS device, the build failed and showed the following error message - Command/Applications/Xcode 4.6.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 10
I tried various methods. I cleaned the App. I reinstalled Xcode. I deleted keys and certificates from Keychain Access. Its of no use. The Xcode is always showing this same error message. I created a fresh new sample project in this Xcode, it is still showing the same error message.
My Mac machine previously was Snow Leopard. I recently upgraded it to Lion OS X version 10.7.5
Please tell me what I should do to solve this issue. Thanks in advance.
Try making a clean new project, and see if the error persists.
And make sure you don't delete any important files like the
main storyboard or any xib-files.

Resources