I honestly don't know what to do anymore. I am getting the error:
Failed to package
Command PhaseScriptExecution failed with a nonzero exit code
And my AppFrameworkInfo
+
Pods_Runner is showing red.
When I check the Flutter documents, I already can see that it's not the same as how Flutter did it.
https://docs.flutter.dev/development/ios-project-migration
What am I doing wrong here? I tried everything: removing and reinstalling pods and all other tips in other questions.
Anyone who could help here? I am really stuck.
Try to do:
flutter create .
You have to do this in your main project folder. Remove any ios folder if there is one and make sure you do the command with the dot.
Should work.
Can anyone help me to solve this error?
Thanks in advance.
Clean Build Folder like Andreas mentioned
(if it doesn't solve the problem ->)
Delete Derive Data
I need to create cordova iOS phoneGap plugin using swift. I don't have any idea about this.I visited the link - "http://cordova.apache.org/docs/en/latest/guide/platforms/ios/plugin.html"
But this seems vague to me, there not step by step detailed description. Please help me out with this.(Any tutorial with step by step instructions?)
Updated
I have used tutorial - "http://moduscreate.com/writing-a-cordova-plugin-in-swift-for-ios/" and followed the same steps with the same code but got stuck while running command "cordova build ios" with the following error -
** BUILD FAILED **
The following build commands failed:
CompileXIB TestApp/Classes/MainViewController.xib
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/kirti/testapp/platforms/ios/cordova/build-debug.xcconfig,-project,TestApp.xcodeproj,-target,TestApp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,build,CONFIGURATION_BUILD_DIR=/Users/kirti/testapp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/kirti/testapp/platforms/ios/build/sharedpch
Please help me out.I do not understand what's the problem is?
Thanks!!
I did this plugin in order to bring the swift support in Cordova projects :
https://github.com/akofman/cordova-plugin-add-swift-support
You can have a try with it and also read the following article which is a good tutorial.
I have solved the problem finally.The reason of error "Build Failed" was due to the version of swift.In swift 3, you need to add "#objc" before function name.In my case, it's like -
#objc(echo:)func echo(command: CDVInvokedUrlCommand) {
//...enter code here
..}
I keep trying to run my Xcode project (named "ppsideloader") and it keeps giving me 2 errors. Also I Cleaned and Built many times then tried to run, but still same problem.
First Error:
/Users/myUser/Library/Developer/Xcode/DerivedData/ppsideloader-flikuhbwvklweghesxwygrfiylum/Build/Products/Debug-iphoneos/ppsideloader.app/*.dylib: No such file or directory
Second Error:
Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure
My Build Phases:
I don't know what to do, I tried almost everything. Can someone please help me ?
#Emm...I also faced Same Issue. But the issue is fixed when i re install xcode and restarted my machine.
Try the Same i hope that it will be helpfull to you
I've been following this tutorial on how to enable Parse Crash Reporting: https://www.youtube.com/watch?v=L4SMyHAVJgk
However, after I create the run script and build my app, I get the following error: /bin/sh failed with exit code 2
I'm not the best at understanding weird error codes like this so any help would be greatly appreciated!
Here is my run script:
export PATH=/usr/local/bin:$PATH
cd </Users/dom/MyApp/parse>
parse symbols "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
Also, I'm using Xcode 6.1.1
Don't use "<>" so let it just:
cd /Users/dom/MyApp/parse