Xcode 11-beta3 build fails when project contains an asset catalog: error: unknown argument '--development-region' - xcode11

Trying to migrate an existing project to which contains an asset catalog to Xcode11/iOS13. Project builds and runs fine under Xcode 10.3, however when I attempt to compile it under Xcode 11-beta3, it fails with the following message:
: error: Unknown argument '--development-region'
Command CompileAssetCatalog failed with a nonzero exit code
Steps to reproduce:
Create a simple single-view application in Xcode 10.3
Add an asset catalog
Add an image set
Populate the image set
Build and run (project builds and runs fine in Xcode 10.3
Close Xcode 10.3
Reboot Mac (just in case)
Open Xcode 11-beta3
Open the above project
Build (build fails as described above)
Here is a zip file containing the project:
https://1drv.ms/u/s!Aq5tGS9qpM0RrV3zn6_-vAdiDP5u
The project build successfully in Xcode 10.3 but not in Xcode 11-beta3.

I was able to resolve the issue by removing and re-installing xCode 11

Related

Xcode: Error Build failed while building on iPhone

I am trying to run my application on my iPhone and receiving the following error. It is working fine on Simulator and release builds are also getting built.
error build: Build input file cannot be found: '/Users/mdjavedakhtar/Library/Developer/Xcode/DerivedData/baa-ejkeyxidrdwrgyctzidcxyrfemfc/Build/Products/Debug-iphoneos/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?
Faced with the same issue after updating macOS to 13.2 and Xcode 14.2. Deleting of the project and cloning repo with install whole the project again helped me.
In my case removing arm64 value from Excluded Architectures > Debug solved the problem. (+ it should be removed from all targets including OnesignalNotificationService)

XCode 13.2.1 Executable Not Found

I am trying to build my react-native ios application on an iPhone 12 (ios 14.3) simulator. After the build succeeds, I am getting an error dialog at the end reading:
"Executable Not Found
/userFolder/Library/Developer/Xcode/DerivedData/eMobility-fzupihuygopdozakomhycmxkpemd/Build/Products/Debug-iphonesimulator/eMobility.app is not a valid path to an executable file. Please rebuild the project to ensure that all required executables are created. Check your project settings to ensure that a valid executable will be built
"
Error details:
"
Executable Not Found
Domain: DVTMachOErrorDomain
Code: 5
Recovery Suggestion: /userFolder/Library/Developer/Xcode/DerivedData/eMobility-fzupihuygopdozakomhycmxkpemd/Build/Products/Debug-iphonesimulator/eMobility.app is not a valid path to an executable file. Please rebuild the project to ensure that all required executables are created. Check your project settings to ensure that a valid executable will be built.
User Info: {
DVTErrorCreationDateKey = "2022-01-12 14:26:52 +0000";
}
I am using the latest XCode version : 13.2.1.
I want to say that the build was working before without changing anything (same simulator). So I am guessing it comes from the latest XCode update
run npm install before run the project from XCode

Can't find React native project on iOS Simulator or Xcode project

I have deleted my project on Xcode may it be .xcworkspace or .xcodeproj.
Because of that, I had to delete IOS and android folders while downgrading, updating and re-upgrading my react version to re-install IOS and android folders.
Thanks to that the emulator is working but unfortunately the project isn't present in the emulator and is still absent with Xcode. One thing to point out is that the simulator only appears when ran in the integrated terminal and nor in general terminal after cd-ing in the project folder.
Can anyone please help re-integrating the project in the emulator and on Xcode, please.
Here is the error when the emulator is running in a general terminal:
Here is the error when the emulator is running in a general terminal:
error Command failed: xcrun instruments -s
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk' (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
Here is the error for building the project within emulator when ran from VS code integrated terminal:
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening project.xcodeproj
The process you need to follow is so similar to renaming a react native app. Basically you just need to run react-native upgrade in your root project directory. For further info you can check another question here. The instructions below explains how to create another react native project based on a copied one with a new name.
First copy the directory which your to-be-name-changed application exists. And go to your newly cloned directory.
Change the name at index.ios/android.js file which is given as a parameter to AppRegistry.
Change the name and version accordingly on package.json
Delete /ios and /android folders which are remaining from your older app.
Run $react-native upgrade to generate /ios and /android folders again.
Run $react-native link for any native dependency.
Finally run $react-native run-ios or anything you want.
Courtesy of
https://stackoverflow.com/questions/42506068/how-can-i-regenerate-ios-folder-in-react-native-project

Failed to build iOS project. We ran "xcodebuild" [duplicate]

This question already has answers here:
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65
(32 answers)
Closed 2 years ago.
I am creating an App with my development team, by cloning the Github project and running the react-native run-ios generates the following error.
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening vamola.xcodeproj
on one topic suggested this correction;
Go to project settings in Xcode. Menu File-> Project Settings
Go to per-User Project Settings section.
Click on advanced.
Select Xcode Default option. previously this used to be Legacy for my project.
but I did not succeed.
to be able to compile my project
React Native iOS build failed due to Yoga Error
The only thing you need to do, is to delete the build folder in ios project

Cannot build InAppSettingsKitSampleApp

I just downloaded and unpacked the ZIP for InAppSettingsKit.
For all three versions of the sample app, I am having problems when trying to build and run in Xcode 10.0:
IASKSampleAppStaticLibrary.xcodeproj: fatal error: 'InAppSettingsKit/IASKSpecifier.h' file not found
InAppSettingsKitSampleApp.xcodeproj: CustomViewCell.xib:global: error: Compiling IB documents for earlier than iOS 7 is no longer supported.
InAppSettingsKitSampleAppStoryboard.xcodeproj: 'InAppSettingsKit/IASKAppSettingsViewController.h' file not found (in SettingsViewController.h)
Are these sample apps not up-to-date or am I missing something?
Just open the InAppSettingsKit.xcworkspace and select any target.

Resources