iOS - Xcode - Error Starting Executable 'Templatelpone' - xcode

Hi all I recieved this error when I tried to run the app on my iPhone.
Error launching remote program: No such file or directory (/Users/thephone/Library/Developer/Xcode/DerivedData/TemplateIpone-dnfacjtdklqktcazrpfyupofdryp/Build/Products/Debug-iphoneos/TemplateIpone.app/TemplateIpone).
I think I may have messed with the -Info.plist file.
I changed Bundle display name and bundle name, plus added my icon file name.
Anyone else have these issues?
J
PS: The App runs fine on the iPhone if I press the icon manually.

I too edited info.plist and got the same error. A restart of xcode fixed this problem.

Related

React Native App throwing domain=FBSOpenApplicationServiceErrorDomain, code=3 Error

I've updated quite a few NPM packages in my React Native app and now even though it seems to build fine, it starts and immediately crashes on the iOS simulator. The error that it throws is:
Failed to launch the app on simulator, An error was encountered
processing the command (domain=FBSOpenApplicationServiceErrorDomain,
code=3) The request to open "org.reactjs.native.example.myappname"
failed. THe process did launch, but has since exited or crashed.
Prior to these npm package updates, the app was running fine. I found a few suggestions such as running rm -rf ios/build, cleaning the project, etc. I tried all these but still getting the same error.
Any suggestions on how to fix this issue?
BTW, this is a react-native: "^0.65.1" app and the Xcode version is 12.4.
If there is no recent change in the iOS project files then try:
Reset Content and Settings of the simulator:
If reseting the simulator content and settings doesn't work, update Xcode to its latest version.
I encountered this while upgrading a React Native application and found the actual error a few lines above:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22): Failed to install the requested application The application's Info.plist does not contain a valid CFBundleShortVersionString. Ensure your bundle contains a valid CFBundleShortVersionString.
Then a few lines later error Failed to launch the app on simulator, An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=4):
Fixing the above error by setting the version correctly in xcode fixed the error for me.
The error was thrown in my case because of the bundle id was copy pasted to xCode and it had space around:
" com.your.app "
instead of
"com.your.app"
In my case the problem was for xml formatter and when I formatted the file it was added " " before package name.
check the source after formatting the file.

Xcode 11 Canvas cannot preview in this file

I am unable to preview my app in canvas.
Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"
NSLocalizedFailureReason=An application bundle was not found at the provided path., NSLocalizedRecoverySuggestion=Provide a valid path to the desired application bundle., NSLocalizedDescription=Failed to install the requested application}
This was the run diagnostics. Any solution? I am able still able to use the iOS simulator. Thanks
For some reason, Xcode 11 couldn't detect a substantial change in the code for me. All I had to do was clear the build - Product | Clear Build Folder and then click on the try again.

xCode: This app can not be installed at this time. Only get this error after adding the watchOS extension

App runs perfectly fine before adding the watchOS extension. But when I add it, it refuses to install the main app when I run it.
Things I've tried:
- clean, re-build
- reinstalled pods
- checked log file (gave me no useful info on what was happening)
- scrubbed every link I could find on google and found nothing that worked.
Any help?
Did you set up codesigning for the extension?
What message appears in your the system log of the device under test when the install fails?

Xamarin: Unable to run iOS App from Visual Studio 2015

I am unable to run iOS App from VS 2015 on Windows. I can see the Mac agent is connected to my Mac but there is following error in the log file. Can someone please advise what is going wrong here?
Xamarin.Messaging.VisualStudio.MessagingFileManager Error: 0 :
[2016-12-16 17:53:15.3687] An error occurred downloading files for App
App3 System.IO.FileNotFoundException: The file
'/var/empty/Library/Caches/Xamarin/mtbs/builds/App3/c401707f0c87e530ed45cad421856e4f/obj/iPhoneSimulator/Debug/build-signature/signature'
was not found on the Mac.
I was able to build the application but it was not launching iOS simulator and the log was pointing to error mentioned above. After #AlanClark's comment, I started examining the contents of folders on my mac. There are two places where the contents of the app are copied on Mac.
/var/empty/Library/Caches/Xamarin/mtbs/builds/App3/c401707f0c87e530ed45cad421856e4f/
/Users//Library/Caches/Xamarin/mtbs/builds/App3/c401707f0c87e530ed45cad421856e4f/
I noticed that there was obj folder in location 2 but it was not there in location 1. I manually copied the obj folder and I could launch the app after that. Still trying to figure out why obj folder is missing from location 2.

OS X app on Lion 10.7.2 Xcode 4.3 :: error: failed to launch <exe path> -- SBTarget is invalid

The app builds with zero errors and has a single line of output after Xcode displays "Running AppName : AppName"
error: failed to launch '/tmp/HungryMeProduct/Debug/HungryMe.app/Contents/MacOS/HungryMe'
-- SBTarget is invalid
The App will not run in Xcode.
This is my first OS X app. It was doing fine until
I changed the Project Name and the name of the xcodeproj file name recently.
ProjectName, Executable Name are the same.
Deployment Target 10.6
The executable at .../Contents/MacOS/HungryMe runs when I double click it.
Terminal window displays output.
The code signing identity remains my Developer Identity
In the schemes I see that LLDB is selected not GDB. Is this a debugger problem? What is SBTarget?
This happened to me, and the issue I had was the schema Target was correct but 64 bit was selected in as the architecture instead of 32 bit, for a 32 bit only project. Once I made the switch, it started working again.
GDB had the same issue but did not report it so elegantly, instead it reported "warning: posix_spawn failed, trying execvp, error: 86". It did launch the app but could not debug it.
This can easily happen if you debug without building the project, after switching the schema, or if the schema gets switched for you due to an external change to the project file (updating or reverting your source repository using git, svn, ...)
I tried everything metioned here. Nothing worked. It seems that I somehow imported the Info.plist twice. To fix it I selected the project and pressed the "Validate Settings" button. Afterwards it works for me.
Try to change Target's Architectures in Build Settings

Resources