command Phase swift execution error while i try to run my project in my device - swift4.1.5

Hai When i tried to run my code in my device i got the below
error./usr/bin/codesign --force --sign 13A01D0D81E2B38716BB9676A4AC64A9D4D91318 --preserve-metadata=identifier,entitlements '/Users/logesh/Library/Developer/Xcode/DerivedData/Life_Project_Mobile-cmnrembpazemptgifdkxwudlutjp/Build/Products/Debug-iphoneos/Life Project Mobile.app/Frameworks/GTMSessionFetcher.framework' /Users/logesh/Library/Developer/Xcode/DerivedData/Life_Project_Mobile-cmnrembpazemptgifdkxwudlutjp/Build/Products/Debug-iphoneos/Life Project Mobile.app/Frameworks/GTMSessionFetcher.framework: errSecInternalComponent
Command PhaseScriptExecution failed with a nonzero exit code
Ios 11.4
Xcode 10.3 beta

Related

XCode 14.0.1 error build: Command PhaseScriptExecution failed with a nonzero exit code (React Native project)

I'm trying to run my React Native project on XCode so that I can get it to run on my iOS device, everything works perfectly fine in VS Code and the Simulator software, but XCode simply refuses to build the project, throwing the error:
error build: Command PhaseScriptExecution failed with a nonzero exit code
This error occurs even when I try running an untouched new project (the example init project from react-native).
I tried these solutions:
deintegrating and reinstalling pods
running this command: npx react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ./ios/main.jsbundle
Locking and unlocking the "login" keychain, I wasn't able to lock the keychain in the first place, the option is greyed out. What could cause that?
run pod install in the ios directory
I use:
XCode 14.0.1
M1 Macbook Air
MacOS Big Sur 12.6
React Native 9.1.3 (at least that's what npx react-native -v says, but node modules -> react-native -> package.json in my project says it's 0.70.1)
If there are any more details you need please let me know, thanks.
EDIT: Here's a screenshot of the build's report in the report navigator
screenshot

Xcode error when build project in flutter

I am new in flutter.I uses Xcode version-12.3 and flutter version Flutter 2.10.4.
when I build the project in Xcode I got an error Command PhaseScriptExecution failed with a nonzero exit code.
And when i try to build in terminal an error- Encountered error while building for device.
enter image description here
When I run the project in terminal it gives a warning:Your Flutter application is created using an older version of the Android
embedding. It is being deprecated in favor of Android embedding v2
will it make any difference to build my project.

grpc/grpc.h file not found error when building flutter project in xcode 11.5

grpc/grpc.h file not found error when building flutter project in xcode.
I reinstalled and updated all Cocoapods. No errors.
From Terminal, already ran flutter clean, flutter doctor (see below).
flutter build ios returns the following message:
Xcode build done. 5.4s
Failed to build iOS app
Error output from Xcode build:
** BUILD FAILED **
Xcode's output:
↳
In file included from
/Users/.../ios/Pods/gRPC-C++/src/cpp/thread_manager/thread_manager.cc:19:
In file included from
/Users/.../ios/Pods/gRPC-C++/src/cpp/thread_manager/thread_manager.h:27:
/Users/.../Documents/name_gifts_v2_working/ios/Pods/gRPC-C++/src/core/lib/gprpp/sync.h:22:10: fatal error:
'grpc/impl/codegen/port_platform.h' file not found
#include <grpc/impl/codegen/port_platform.h>
1 error generated.
Installing libgrpc++-dev and libgrpc-dev packages fixed this issue for me on Ubuntu. Try to find equivalent packages for your OS.

Carthage xcodebuild timed out

I tried to create a Carthage framework using v0.23.0 and Xcode 8.3.3.
When I ran the command "carthage build --no-skip-current", it led to the following error message:
"*** xcodebuild output can be found in /var/folders/h4/1slt67613tx6c_xdd4ffp9nw0000gn/T/carthage-xcodebuild.mOvSot.log
xcodebuild timed out while trying to read
"
Here is my machine's settings:
xcrun version 32.
Xcode command line tool version:
xcode-select version 2347.
xcodebuild -version:
Xcode 8.3.3
Build version 8E3004b
Carthage version:
0.23.0
Please advise.
Thank you,
Helen
I was getting the same problem when I switched to Xcode 9.
After a carthage build or update the following message came up.
xcodebuild timed out while trying to read AWSiOSSDKv2.xcodeproj
I tried to open the xcodeprok using Xcode, close Xcode and then rerun carthage build. The problem was gone.
I believe that it has to do with something that was missing and added once i opened the project in Xcode.
After carthage update I have to reopen the xcode project that timed out and rerun carthage build this time.

xcode build fails with error code 65 without indicative message

I'm experiencing weird behaviour with my iPhone CI job (running in TeamCity). Every once in a while our build fails without any indicative error in the build log. The build reaches the last stage of codesign validation and I get ** BUILD FAILED ** message immediately after.
These are the last lines of the log of a good and bad builds -
Bad Build
[15:00:56] : [CodeSign] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Library/TeamCity/buildAgent/work/dc055fa257f562be/DerivedData/MyProject/Build/Products/AdHoc-iphoneos/MyProject.app
[15:00:58]W: [Step 3/6] ** BUILD FAILED **
Good Build
[14:09:13] : [CodeSign] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Library/TeamCity/buildAgent/work/dc055fa257f562be/DerivedData/MyProject/Build/Products/AdHoc-iphoneos/MyProject.app
[14:09:13] : [Step 3/6] ** BUILD SUCCEEDED **
Because it's running in a CI I looked for user interaction problems (opening the keychain...etc') but usually xcodebuild spews the relevant errors.
Is there any other log I can dig into to find the cause of the build failures?
EDIT:
Seems I had the same problem like build failed jenkins iOS no error.
I also had a similar problem, in my case it was caused by the fact I'm using both Xcode 7.2 and Xcode 6.4 side by side. When the simulator of Xcode 6.4 is open (iOS Simulator 8.4) and I try to start a test from the commandline using Xcode 7.2 I get this 65 error.
Eg. when iOS Simulator 8.4 is open:
# sudo xcode-select -s "/Applications/Xcode 7.2.app/Contents/Developer"
# xcodebuild test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO -workspace "/path/to/MyWorkspace.xcworkspace" -scheme "MyProject" -destination "platform=iOS Simulator,name=iPhone 6,OS=9.2"
(cut)
** TEST FAILED **
# echo $?
65
Solution is to kill the simulator before starting the test:
# killall "iOS Simulator"
# killall "Simulator"
The process is called "iOS Simulator" for XCode 6.4 and earlier and called "Simulator" for later XCode versions.
Had the same problem as build failed jenkins iOS no error
tl;dr - CopyPNG failed because of two images with the same name.
You need to remove platform ios - cordova platform rm ios, and then add platform - cordova platform add ios. now build ios - cordova build ios
I hit this when updating to Xcode 8, in my case it was because I had set the PROVISIONING_PROFILE_SPECIFIER setting incorrectly
For Xcode version 13
The following is what worked for me, this is aimed at Xcode version 13, hoping to be helpful
My React native project was cloned, i was able to run the app in android, but while running on iOS it showed error code 65.
After trying most of the solutions and failing, i got it fixed finally. This is what worked for me, and could be useful for some people hopefully.
Clone the project again(not necessary, just telling you what was done)
npm install
pod install (in iOS directory)
If Xcode shows error code 65, if there is legacy deprecation issue --> go to Xcode -->file --> workspace settings --> Check the box at the end of the window saying "do not show diagnostic issue about build system deprecation
run the project again
This is what fixed it for me.
My issue came up after updating to the latest version of Xcode. To resolve, I performed the following steps.
Completely quit Xcode and the Simulator. I had a zombie Simulator process running that I found and closed through Activity Monitor. Be sure no processes for Xcode or Simulator are running.
In Xcode, open the project found in the ios folder of your react-native project.
Xcode may suggest some recommended updates to modules. I accepted their recommendations.
Close Xcode, relaunch your react-native app

Resources