iPhone Application crashes in "AdHoc" mode - iphone

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

Related

Lost connection to the debugger on iPhone simulator running Big sur11.4

I have face the issue while running my app on Big sur 11.4.While run the app I got "Build succeeded" message but after app is automatically stops then showing a popup message like
Lost connection to the debugger on “iPhone 12”.
Domain: IDEDebugSessionErrorDomain
Code: 4
Recovery Suggestion: Restore the connection to “iPhone 12” and run “APP_TARGET_NAME” again, or if “APP_TARGET_NAME” is still running, you can attach to it by selecting Debug > Attach to Process > APP_TARGET_NAME.
--
System Information
macOS Version 11.4
Xcode 12.1 (17222)
Please help me how to resolve the issue.
This usually happens with apps with lots of dependencies so they take too long to launch, making the debugger to abort and time out.
A temporary solution would be:
Create (or edit in case you already have) a .lldbinit file in your home directory. vim ~/.lldbinit.
Add this to the end of file: settings set plugin.process.gdb-remote.packet-timeout 300.
Restart Xcode and try again.
I have tried this way and it is working like uncheck debug executable option.
Choose Edit Schema->Info->uncheck Debug executable

XCode multiple errors (No such command "-no_deduplicate")

I've build an app which is using firebase auth, database, storage and core.
But when I build my app, there are coming multiple errors, one of them is
"No such command: '-no_deduplicate'".
And file-not-found errors that are searching any simulator architecture file containing the path /i386/, but I haven't memorized them.
Thank you for your help,
MarvMan
IIRC it's a warning and if you run your app in build mode instead of dev mode this specific warning goes away

Error launching remote program: No such file or directory

Anyone have an idea about this
Error launching remote program: No such file or directory (/Users/muself/Library/Developer/Xcode/DerivedData/myproject-hlelojuljidnnagbdqzliazpdgmn/Build/Products/Debug-iphoneos/myproject.app/myproject).
The project was working fine with the previous Xcode versions. I have just updated the Xcode to Version 4.3.2 (4E2002), & the error start coming.
I have search on the web, and tried a lot of the options like
Quit Xcode, clear the Derived Data folder, restart the Xcode.
Rename the project,
Reset the device,etc
I also tried this on another machine but did not work, the same problem occurs.
But one thing i have some other projects as well and they are working fine.
Thanks for at least reading this.
First try restarting Xcode. If it doesn't work, then try hard reset of your device. This happens to me when I change the bundle identifier of my app.
This solution,I found of the above problem its working fine for me.:)
have you tried to "validate settings" (button on the bottom of project settings)? Do you use some static libs in your app? – Vov4yk
Check your deployment target. I am running Xcode 4.5, and it gave me that cryptic message, while the reason was that my iPad is running version 5.1.1, and my app was set with deployment target of 6.0.
I also get same problem. This below solution works for me.
Thats really annoying. This error happens in a number of different situations. Sometime restarting the Xcode, fixes the problem. If not, follow these steps:
Disconnect your device.
Delete the app from your device.
Quit xcode (Don't just simply close the window, quit it)
Delete derived data folder (~/Library/Developer/Xcode/DerivedData/APPNAME -gbrvhlvwmpiobxdujegtghggrffp - or something like that)
Now start Xcode, connect device and run the project. It should work fine.
Source: http://dhilipsiva.com/2012/07/24/xcode-could-not-launch-app-no-such-file-or-directory-error.html
Hard reset of the device fixed it for me. i.e. power off and back on.
Quitting Xcode, disconnecting, reconnecting the device etc didn't.
The error occurred just after I had created a new project with the a duplicate Bundle Identifier to another. Both apps coexist OK on the device/ in Xcode, but this does seem to cause the above issue.
I saw this when I let the build configuration set up as ad-hoc. After I put it back to Debug it worked fine.

Issue while launching project in device

I am facing a weird issue while running my project on the device. I see below error even though the app file is present in the mentioned path. Also the project gets copied in the device & I need to tap on app icon to launch it but it fails while launching from XCODe. Any clue - is this because of spaces in my schema name?:
error: failed to launch '/Users/abhi/Library/Developer/Xcode/DerivedData/MyProject-atlkwwnwccqaopgembmyzeecthfx/Build/Products/QA - Debug - Production-iphoneos/MyProject.app/MyProject' -- No such file or directory (/Users/abhi/Library/Developer/Xcode/DerivedData/MyProject-atlkwwnwccqaopgembmyzeecthfx/Build/Products/QA - Debug - Production-iphoneos/MyProject.app/MyProject)
Delete app from your device, switch OFF and ON your device, clean your code and then run it on device, it will install..
If not Restart your Xcode...
I have tried this when i have faced same problem and this one worked for me
Tried advice by Sree Charan with no success for XCode 4.3.3. Ultimately (and I'm not sure this is what fixed it), I went to Validate Settings on the Editor Menu and it updated settings from GDB to LLDB and then it worked.
I'm only providing the info above in hopes it might help someone else. I have no way to verify that is what fixed this problem (and I spent 2 hours looking for a solution).

Blackberry Simulator Error 102

I'm having some issue launching a blackberry application with an
"Error 102 Reload Software Invalid code in filesystem"
popping up on the simulator. I've cleaned and deleted all the required files from all the simulators in the RIM simulator folders (run clean.bat) and in the eclipse folders. I've also cleaned it through the clean option through the eclipse environment. However even after all this I still get the error. I've been researching online and for the most part all the solutions seem to say "run clean.bat, and restart your simulator" or "delete .dmp files". This however does not work for me. I can't say whether this is due to the code since I did not code the first portion, it was left for me to continue off. I was able to run the simulator with the application showing a few times but all of a sudden it stopped (and I hadn't coded anything yet). Does anyone perhaps know any methods on how to get it to work or what is causing this?
Deleted .dmp files on the simulator folder
Cleaned the simulator using eclipse
Cleaned the proyect
Then I run it and worked again.
Hope that this help
Run clean.bat inside the simulator folder and remove any .dmp files also. Finally in the simulator window go to File > Reset to Factory Defaults. Done!