Build input file cannot be found errors comes when app is run on simulator - swift

Build input file cannot be found:
'/Users/Rohanmash/Library/Developer/Xcode/DerivedData/Gameo-gsxvlojnaktgtvcwkqzmnydfdpwa/Build/Products/Release-iphonesimulator/Gameo.app/Gameo'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?
I'm getting this error whenever I run the app on simulator, On physical device it works fine. Please help.

Related

Apollo IOS - Command PhaseScriptExecution failed with a nonzero exit code

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

Xcode fails to build the project due to Bus error: 10

I'm trying to "archive" an existing project after Xcode upgrade to 10.2 (10E125) and it continuously fails.
But it works perfect when I'm building and running the project on simulator / device and even when target device is "Generic iOS Device".
Looks like the issue is related only to "Archive" function.
Complete error text is the following:
Command failed due to signal: Bus error: 10
and no extra details unfortunately..
I've already tried Cleaning the project, removing "Derived Data", restarting my Mac but nothing helps.
Could you please suggest if that's can be fixed or any workaround exist?
Still not able to find a 100% valid solution to that but notice that continuously trying to Archive sometimes succeeds without any code / configuration changes (randomly)
I would say each ~10th Archive attempt succeeds.
That's my temporary workaround for now - Archive until Archived...

Error when trying to Deploy MonoTouch App to iPhone

I am trying to deploy my MonoTouch Application to my iPhone. I have set up the profile on the phone and purchased the MonoTouch license. However when I try to deploy to the iPhone I am getting the following error:
mtouch failed with no output(1)
The compiler is giving this error:
Error: You should provide one root assembly only.
This only appears when I try to deploy the application to the iPhone. If I use the simulator it compiles and runs fine.
Anyone have any ideas how to fix this?
UPDATE:
Actually this error only occurs if I try to Debug on the iPhone. If I use the Release build option it actually deploys fine.
This error occurs when more than one argument to 'mtouch' is not preceded by an option.
If you're using MonoDevelop then this could occur if you added some "Additional mtouch arguments" (in Options | iPhone Build). Since they could be different in Build and Debug it could explain why you have no issue in Release mode. Try matching the Debug arguments to the Release arguments.
If you're using mtouch on the command line then check every one of your arguments. Only one should not be prefixed, and this should be the name of your main assembly.

Xcode: Build error: tried to link DWARF for unsupported file:

I've changed something in my project settings and now when I run this project to build and debug I get build error:
GenerateDSYMFile error: tried to link DWARF for unsupported file: "correct path to my application executable here"
but! when I press RUN once more it works like a charm and my app starts in Simulator.
so I need press cmd-R twice every time to debug my app.
it was normal in previous version of my project so I don't know what changes I've made %)
all my other projects works fine and I can just recreate this project, but I want to figured it out - what trigger this error. I tried to ask this question on Apple devforums but without any success.
any help here? thx )
ps this error shows as Xcode3 as Xcode4
There is same file name as your project name in bundle so get rid of that file by renaming it and use accordingly.
Clean the project and run the project. Good to go.
not sure if you figured out what the problem was, had the same thing happen to me. I had made a text file called the same name as my project - when I got rid of that it fixed it.
Try changing under Build Options > Debug Information Format. See if that helps.
I got it when I tried to run my app in the simulator.
Xcode said ATTACHING TO PROCESS but hung.
So had to kill XCode and restart.
When I ran project again it built ok but when I said RUN it got that link error.
I fixed it by deleting the app in the Simulator and hit run again and it worked.
In my case It was a plist file causing the error.
I renamed the file and updated Info.plist File in Target Build Settings and that fixed it.
I got the same error: "error: tried to link DWARF for unsupported file: /Volumes/..."
This error wasn't shown before up until I changed to Xcode 6 in my Jenkins server. Before we had the same setting of the App and was building without any problem.
I was building the app as Realase version via Jenkins and I had the setting to build with the following configuration "-configuration Release" and the parameter "Debug Information Format" in Build Setting of the app was set to DWARF-with-dSYM.
In order to solve this error I changed in the targets in Xcode in Build Settings in the parameter "Debug Information Format" to DWARF only and I didn't get any error from Jenkins.
The apple developer documentation says this regarding the different values of this parameter:
DEBUG_INFORMATION_FORMAT (Debug Information Format)
Description: Identifier. Identifies the format used to store the binary’s debug information.
Values:
stabs: Use the Stabs format and place the debug information in the binary.
dwarf: Use the DWARF format and place the debug information in the binary.
dwarf-with-dsym: Use the DWARF format and place the debug information in a dSYM file.
Default value:
dwarf
Prerequisite for:
“GCC_ENABLE_SYMBOL_SEPARATION (Separate PCH Symbols).”
Link: https://developer.apple.com/library/mac/documentation/developertools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html

iPhone Application crashes in "AdHoc" mode

i got a little application which is working very well with my "debug" configuration on my phone and in simulator.
i created a adhoc provisioning profile, and added a "beta" configuration to it.
trying to launch the application with the ad-hoc configuration crashes my application immediatelly.
the console output is:
Running…
Error launching remote program: failed to get the task for process 2434.
Error launching remote program: failed to get the task for process 2434.
The program being debugged is not being run.
The program being debugged is not being run.
i also created a dist.plsit, unchecked the get-tast-allow and setted this file in my built settings under code signing.
does anyone have an idea?
thanks!
Sometimes when you change lots of things, especially build configs, xcodebuild doesn't seem to figure out which files are stale and links in old stuff that needs to be rebuilt. Try doing a Clean All or just delete your build directory from the project dir. That seems to solve most of these bizarre-ass unexplainable problems for me.
simple thing. i clicked "built and run" instead of "built".
an ad-hoc version cannot be debugged :D