I was successfully able to build my app for android in codemagic, but ios is just killing me. I got all sorts of errors I've seen for the first time. Many of them I hope I resolved successfully, but I haven't find the answer for this one:
/Users/builder/Library/Developer/Xcode/DerivedData/Runner-edaimyiflreloheqntgnhkmwcclv/Build/Intermediates.noindex/Runner.build/Release-iphoneos/Runner.build/assetcatalog_generated_info.plist
The path does not exist
Command PhaseScriptExecution failed with a nonzero exit code
So I did some googling, and if I understand correctly DerivedData hold the builds for the project. I had a look into the folder and I didn't find the Runner-edaimyiflreloheqntgnhkmwcclv which explains the error.
However when I tried to build the app in xcode I had the same error except the Runner-***** directory was different and this time it was present with every other directory down to assetcatalog_generated_info.plist which then didn't make sense to me since it was present.
I tried flutter clean and wanted to build it again, but the same error would come up.
The link github.com/flutter/flutter/issues/23465 from #MikhailTokarev helped big time.
By the end of the thread scut204 commented:
Select "Run script only when installing" in Xcode Build Phase script.
Encountered and solved.
Tutorial update demanding.
That solved it.
Related
I finished my application and everything looks very good, but excellent, but when I start creating the key on visual code and extracting the application in aap format or the appbundle command, it gives me a very old path and the problem is that that path is stuck and is not corrected at all
I tried all possible methods, and when I searched for the problem in the developer community, I found that the solution is to trace the path, but the problem is that the path does not exist in the first place. The old one completely and activating the new path on Visual Code I hope you can help me as soon as possible...
I have an app that uses graphql and connected to Apollo. Everything works as expected until one day it produces this error (please see image). I follow the solution found in this thread
I enabled the run script for install builds only on my build phase settings. My apps runs again as expected but whenever I try to archive my app, I encountered the error again. I tried to clean my project, reintall pod. delete worxspace and generate again but still encounter the same error. I dont understand why I keep having this error. Please help. Thank you
I have been getting that error message when ever I try to build my app, I am stuck and unable to develop my app until I get this fixed. I know there is a post similar to this although none of the options have helped me.
I have tried restarting x-code
Deleting Derived Data folder (when I build the project the derived folder just reappears)
And I have also searched the entire web
Nothing has worked
clean your project Command shift k
I'm trying to build my app on my iPhone 4 but i keep getting this same error. It has bein run before and has worked fine but i changed my icons and now this is what i get.
Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/iPhoneOS Build System Support.xcplugin/Contents/Resources/copypng failed with exit code 1
The error is called CopyPNGFile
You might have deleted a file in your project's folder without telling XCode, and it still tries to include it. Expand the folders in the Project Navigator and look for files in red, then delete them with a ctrl-click. XCode should be happier after that.
I'm having this issue when I hit Run on the simulator/device, the project compiles successfully but all I see is "Attaching to (AppName)". If I run the project again, it's working fine.
Same is happening when running on the device, but I get alert message, "Could not read from device".
Any ideas?
We had the same issue for weeks on our project. We finally resolved it by removing some of the build warnings we had, specifically ones like:
Warning: Multiple build commands for output file /Users/yosit/Library/Developer/Xcode/DerivedData/Gogobot-dnimbqlmegonbvcyvulfebiqqeor/Build/Products/DebugProduction-iphonesimulator/Gogobot.app/UAPushLocalization.bundle
This happens when you have the same resource filename in different folders on the same project. In our case we removed the UI folder for Urban Airship since we didn't need it. It brought down the number of warnings and removed the problem completely.