Xcode 65 error while running Appium Inspector - xcode

I'm facing this error while running Appium Inspector:
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message
My versions:
Xcode version - 14.2
Appium version - 1.22.3
Opened "WebDriverAgent.xcodeproj" in Xcode and saw this failure:
ld: cannot link directly with dylib/framework, your binary is not an allowed client of /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework/XCTAutomationSupport for architecture arm64
Is this related?

Had this issue and I followed those steps:
npm uninstall appium
npm install -g appium#next
appium plugin install execute-driver
appium -pa /wd/hub --use-plugins execute-driver
appium driver install xcuitest
appium driver install uiautomator2
Took the solution from:
https://github.com/appium/appium/issues/17497

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

Ionic Beta 10 iOS Build - You're trying to build for iosbut don't have the platform installed yet

I've been developing on a Windows computer for Android just fine, but once got my hands on a Mac Mini. Once I got the OS updated to El Capitan, XCode installed, and everything else (NodeJS, Ionic, etc.) I tried to do a build for iOS and the build breaks saying:
You're trying to build for iosbut don't have the platform installed yet.
My Ionic Setup is as follows:
Cordova CLI: 5.4.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.12.0
Xcode version: Xcode 7.3.1 Build version 7D1014
The error I get is as follows:
Running 'build:before' gulp task before build
[23:21:58] Starting 'clean'...
[23:21:58] Finished 'clean' after 65 ms
[23:21:58] Starting 'build'...
[23:21:58] Starting 'sass'...
[23:21:58] Starting 'html'...
[23:21:58] Starting 'fonts'...
[23:21:58] Starting 'scripts'...
[23:21:58] Finished 'scripts' after 74 ms
[23:21:58] Finished 'fonts' after 85 ms
[23:21:58] Finished 'html' after 95 ms
[23:21:59] Finished 'sass' after 1.11 s
[23:22:10] Finished 'build' after 12 s
[23:22:10] Starting 'build:before'...
[23:22:10] Finished 'build:before' after 7.64 μs
• You're trying to build for iosbut don't have the platform installed yet.
∆ Installing ios for you.
Installing cordova-plugin-device
Installing cordova-plugin-console
Installing cordova-plugin-whitelist
Installing cordova-plugin-splashscreen
Installing cordova-plugin-statusbar
Installing ionic-plugin-keyboard
Caught exception:
Error: Command failed: cordova plugin add --save cordova-plugin-device
Parsing /Users/esx/projects/xcatalyst%20mobile%20app/config.xml failed
Error: Unencoded <
Line: 2
Column: 2
Char: <
at ChildProcess.exithandler (child_process.js:202:12)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
As a side note, I did have Node v6.?.? and Cordova v6.3.0 installed, but there where issues where Cordova CLI showed up as Not Installed when executing "ionic info".
I've also tried to execute "ionic state reset" but get a similar error:
Removed platforms and plugins
Attempting to restore your Ionic application from package.json
Restoring Platforms
cordova platform add ios
cordova platform add android
Restore platforms is complete
Restoring Plugins
cordova plugin add cordova-plugin-whitelist
Caught exception:
undefined
This is my first attempt using a Mac and trying to build an Ionic app using one. I've followed (or tried to) the setup information on the Ionic site (OSX Setup).
I'm unsure of how to track either of these errors down.
Thanks in advance for any help.
The issue was in my config.xml, which had some invalid characters and syntax issues. I guess when building for the android platform this didn't matter, but it did/does for iOS builds.

Ionic build ios does not work with xcode 8 beta

I recently downloaded the Xcode 8 beta and replaced it in applications. Now when I execute "ionic build ios" I get this error:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
ERROR building one of the platforms: Error: ***/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: ***/platforms/ios/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
I already tried:
1) ionic platform rm ios
2) ionic platform add ios
Would appreciate some advice. Thanks!
If you run this command:
export DEVELOPER_DIR="/Applications/Xcode-beta.app/Contents/Developer"
I figured out my problem. When you download Xcode 8 beta, it's called "Xcode-beta." I dragged it into Applications and simply deleted the old Xcode. You actually need to re-name the "Xcode-beta" app to "Xcode" for Ionic to recognise it.

Nativescript Tutorial: error with livesync

I'm running on macosx with nativscript 2.0 (typescript+angular2 tutorial).
I just ran the tns run ios --emulator command and then ctrl-c.
Then running this command: tns livesync ios --emulator --watch
results in:
.
.
.
Transferring project files...
Successfully transferred all project files.
Applying changes...
**Error Command failed: killall sampleGroceries2.app
No matching processes belonging to you were found
while executing killall sampleGroceries2.app.**
I have tested the {N} + Angular2 tutorial and afer following the instruction I had no problems with the livesync option.
Have you updated to NativeScript 2.0.0 - I have noticed that this error was logged in the previous version 1.7.1.
If you need to update your NativeScript version globally you can run
npm install -g nativescript
After that step you can remove/add the platform folder from your project with the following commands
tns platform remove ios
tns platform add ios
Also delete the node_modules folder and the re-run
tns run ios --emulator
To check your current NativeScript version you can execute
tns --version
The latest official release of {N} has some livesync fixes so now your command should run as espected - let us know if that solution was appliable for your case.

ionic build android command not working

am new to ionic, I have followed the steps to setup the environment for developing ionic apps from ionicframework site but am stuck on using the ionic build android command coz I get this error
[Error: Please install Android target: "android-17". Hint: Open the SDK manager by running: C:\Program\ Files\Android\android-sdk\tools\android.BAT
You will require:
1. "SDK Platform" for android-17
2. "Android SDK Platform-tools (latest)
3. "Android SDK Build-tools" (latest)]
ERROR building one of the platforms: Error: cmd: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 2
and all these build-tools and platform-tools are installed.what might be the problem please.The android command on win cmd is working well coz its openning the sdk manager
Error image

Resources