apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.16k stars 989 forks source link

xcodebuild: Command failed with exit code 65 #1017

Closed dirkk0 closed 3 years ago

dirkk0 commented 3 years ago

Bug Report

Compilation of HelloWorld fails with error 65

Problem

Compilation of HelloWorld fails with error 65

What is expected to happen?

successful compilation

What does actually happen?

unsuccessful compilation

Information

First of all, I created a series of scripts a while ago to automatically compile my webapps. These worked flawlessly half a year ago, but when I revoked them last week they failed with errors mostly related to 'WKWebViewConfiguration'. In an attempt to reproduce the problem, I tried the HelloWorld from the docs which failed with similar errors.

Command or Code

TEMPFOLDER=/tmp/cordova-test/
if [ ! -d $TEMPFOLDER ]; then
    mkdir -p $TEMPFOLDER
fi
open $TEMPFOLDER

cd $TEMPFOLDER
# npm install cordova
ALIAS_CORDOVA=$TEMPFOLDER/node_modules/.bin/cordova
$ALIAS_CORDOVA -version

$ALIAS_CORDOVA create hello com.example.hello HelloWorld
cd hello
$ALIAS_CORDOVA platform add ios
$ALIAS_CORDOVA build ios

I used this script to recreate the problem. Again, these types of scripts worked before.

Environment, Platform, Device

For several reasons I am still on High Sierra, ie. 10.13.6, which I am aware of that this could be the problem.

I saw that people on Catalina seem to have similar problems, though, namely https://github.com/apache/cordova-ios/issues/1016. This bug report didn't have (or see?) the 65 error, but: when I try to open the Workspace in XCode, I also get the "The file couldn't be opened." error. When I try to open the project in XCode, I get: "The project at '/tmp/cordova-test/hello/platforms/ios/HelloWorld.xcodeproj' cannot be opened because it is in a future Xcode project file format. Adjust the project format using a compatible version of Xcode to allow it to be opened by this version of Xcode."

My XCode Version is 10.1, which unfortunately can't be upgraded unless I go Catalina.

hello_error.txt

Version information

Checklist

dirkk0 commented 3 years ago

My Mac is on Catalina now, and this specific error is gone.

A minimal-ish script to automate the compilation process would look like this:

TEMPFOLDER=/tmp/cordova-test/
BASEDIR=$PWD
APPNAME=hello

mkdir -p $TEMPFOLDER
open $TEMPFOLDER
cd $TEMPFOLDER

npm install cordova
ALIAS_CORDOVA=$TEMPFOLDER/node_modules/.bin/cordova
$ALIAS_CORDOVA create hello com.example.hello HelloWorld

# copy build.json with provisioning profile information
cp $BASEDIR/_common/build.json $TEMPFOLDER/$APPNAME/

cd $APPNAME
$ALIAS_CORDOVA platform add ios
$ALIAS_CORDOVA build ios
$ALIAS_CORDOVA run ios