Why running on mac showing error "App doesn't contain an executable"? - xcode

The macOS app is running on Xcode version 13 but not running on 14.1.
Showing error
I have checked no files are missing in Build Phases. Tried many solutions available for this issue. No Luck!

Related

Xamarin error ios Simulator HE0046: Failed to install the app ... Failed to install the requested application

I changed name of my VS 2019 project running on Mac (from PrismApp1 to something else) and now I can't run on iOS simulator. Tried to run on different simulator phone too. I searched for PrismApp1 in folder and on machine can't find anything... delete bin and obj folders and did a Build All. any ideas?
error HE0046: Failed to install the app 'com.companyname.PrismApp1' on the device 'iOS 13.2 (17B102) - iPhone 11 Pro': Failed to install the requested application
Note: it works if i deploy to my physical iPhone...
I had a similar issue with iPhone 13 emulator and iOS 15, where I couldn't deploy my app on the simulator, but it worked on a real device.
The error I was getting was:
error HE0046: Failed to install the app 'ma.myapp.app' on the device 'iOS 15.0 (19A339) - iPhone 13 mini': “Myapp” Needs To Be Updated
This is how I solved the issue.
I had this weird error after app was successfully compiled and it was simply due to a null variable involved in a plist command executed post build.
Just try to close and reopen VS, it worked for me.

How to resolve missing required file for Flutter iOS Build

I have written my first non-trivial flutter app and have successfully built and run it on both the Android and iOS simulators and an Android device (MOTO G7). In attempting to build it for an Xs Max connected to my iMac I get the following error during the Xcode build:
/Users/dev/FirstApp/ios/Runner/GeneratedPluginRegistrant.m:6:9: 'path_provider/PathProviderPlugin.h' file not found
I have searched the disk and found the following:
/Users/dev/FirstApp/build/ios/Debug-iphonesimulator/path_provider/path_provider.framework/Headers/PathProviderPlugin.h
/Users/dev/FirstApp/build/path_provider/intermediates/javac/debug/compileDebugJavaWithJavac/classes/io/flutter/plugins/pathprovider/PathProviderPlugin.class
I have googled and checked SO for various hints/solutions. None of the, few, suggested fixes has worked for me. My Flutter Doctor -v command display all checkmarks and no issues.
Am I missing something? Is this a Flutter/Xcode bug? I am using Xcode 10.3 and Flutter 1.7.x. Any suggestions or outright fixes would be appreciated.
In your xcode Open the *.xcworkspace file instead of *.xcodeproj file then
Product>Clean
Product>Archive
and waiting

Issue when converting to Mac with Apple's Catalyst

When I use Catalyst to try to create a Mac OS version of my iPad app I am getting the errors:
"Command CodeSign failed with a nonzero exit code"
and
"Finder information, or similar detritus not allowed"
I tried executing the terminal command xattr -cr on the product file inside the "Debug-maccatalyst" folder which is where the error line indicates that the bad data lies. This does not fix the problem.
Also, I do not experience any error when running the app on any version of the iPad.
I'm running Catalina Beta 4 and Xcode 11 beta 4.
Any insights or helpful suggestions would be most appreciated.
i removed some jpgs and pngs i wasn't using from the project folder and now it works

Is there a bug with Xcode 9.3 affecting Cordova Run iOS (in simulator)?

My Cordova iOS builds had previously been running fine from the CLI, until I updated to macOS 10.13.4 and Xcode 9.3 (9E145). Now whenever I use
cordova run ios
The simulator will launch, but my app is not installed or run, and this message is displayed:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
After a minute or two, the process stops and the message then reads:
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.myapp.name" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.myapp.name" is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. Application "com.myapp.name" is unknown to FrontBoard.
Application "com.myapp.name" is unknown to FrontBoard.
Has anyone encountered this message specifically after installing Xcode 9.3? I've uninstalled and reinstalled Cordova, I've tried 'erase settings' within the simulator, and I've removed and added the iOS platform from my project.
The project will successfully build and run if I open the Xcode project file directly within Xcode. So currently it just seems to be a fault from launching the simulator from the Cordova CLI.
Any other tips/tricks?
I’m having a similar issue.
seeing this after I update to XCode 9.3 and build through cli
Error Domain=IDEProfileLocatorErrorDomain Code=1 “No profiles for ‘org.oclc.digby’ were found” UserInfo={NSLocalizedDescription=No profiles for ‘org.oclc.digby’ were found, NSLocalizedRecoverySuggestion=Xcode couldn’t find any iOS Ad Hoc provisioning profiles matching ‘org.oclc.digby’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}
When I bring the project up in XCode the signing is correct and not complaining.
Same issue, solved after install iOS 11.2 Simulator in Xcode preferences -> Components, then
ionic cordova run ios -l --target="iPhone-X"

XCode 4.6.3 showing link error ibtool failed with exit code 10

I installed XCode 4.6.3. Initially I was able to successfully able to build and run my code on it. However, all of a sudden when trying to configure my build on my iOS device, the build failed and showed the following error message - Command/Applications/Xcode 4.6.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 10
I tried various methods. I cleaned the App. I reinstalled Xcode. I deleted keys and certificates from Keychain Access. Its of no use. The Xcode is always showing this same error message. I created a fresh new sample project in this Xcode, it is still showing the same error message.
My Mac machine previously was Snow Leopard. I recently upgraded it to Lion OS X version 10.7.5
Please tell me what I should do to solve this issue. Thanks in advance.
Try making a clean new project, and see if the error persists.
And make sure you don't delete any important files like the
main storyboard or any xib-files.

Resources