when I build for ios using ionic cordova build ios command I get a compilation error for storyboard. Details follow
ionic: 5.4.16
node: 10.22.1
The following build commands failed:
CompileStoryboard /Users/us/root-project/platforms/ios/Breathe/CDVLaunchScreen.storyboard (in target 'Breathe' from project 'Breathe')
(1 failure)
Command finished with error code 65: xcodebuild -workspace,Breathe.xcworkspace,-scheme,Breathe,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone SE (3rd generation),build,CONFIGURATION_BUILD_DIR=/Users/us/root-project/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/us/root-project/platforms/ios/build/sharedpch
xcodebuild: Command failed with exit code 65
Error: xcodebuild: Command failed with exit code 65
at ChildProcess.whenDone (/Users/us/root-project/platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:136:25)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
[ERROR] An error occurred while running subprocess cordova.
cordova build ios --verbose exited with exit code 65.
Re-running this command with the --verbose flag may provide more information.
ionic:utils-process onBeforeExit handler: 'process.exit' received +0ms
ionic:utils-process onBeforeExit handler: running 2 functions +0ms
ionic:utils-process processExit: exiting (exit code: 65) +78ms```
Related
2022-06-20T10:22:26.412Z INFO #wdio/cli:launcher: Run onPrepare hook
2022-06-20T10:23:22.099Z ERROR #wdio/cli:utils: A service failed in the 'onPrepare' hook
Error: Appium exited before timeout (exit code: 1)
at ChildProcess.<anonymous> (C:\Users\Joyi\Downloads\webdriverio-appium-course-master\webdriverio-appium-course-master\node_modules\#wdio\appium-service\build\launcher.js:110:22)
at Object.onceWrapper (node:events:642:26)
at ChildProcess.emit (node:events:527:28)
at ChildProcess.emit (node:domain:475:12)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
I managed to get the appium running. Unfortunately, I couldn't get a test to run successfully. Once the appium test finishes I only get only one unique error message which is the following:
[XCUITest] Error: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 134
at ChildProcess.<anonymous> (../../lib/teen_process.js:66:19)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:192:7)
at maybeClose (internal/child_process.js:890:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:189:7)
at Pipe._handle.close [as _onclose] (net.js:501:12)
{ Error: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 134
at ChildProcess.<anonymous> (../../lib/teen_process.js:66:19)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:192:7)
at maybeClose (internal/child_process.js:890:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:189:7)
at Pipe._handle.close [as _onclose] (net.js:501:12)
stdout: '\u001b[1mFetching dependencies\n',
stderr: 'dyld: Symbol not found: __TMV6Result8AnyError\n Referenced from: /usr/local/Cellar/carthage/0.19.1/bin/../Frameworks/CarthageKit.framework/Versions/Current/Frameworks/ReactiveSwift.framework/ReactiveSwift\n Expected in: /Library/Frameworks/CarthageKit.framework/Versions/Current/Frameworks/Result.framework/Versions/A/Result\n in /usr/local/Cellar/carthage/0.19.1/bin/../Frameworks/CarthageKit.framework/Versions/Current/Frameworks/ReactiveSwift.framework/ReactiveSwift\nScripts/bootstrap.sh: line 45: 18795 Abort trap: 6 carthage bootstrap $USE_SSH\n',
code: 134 }
Could anyone shed light in this matter? Any input is greatly appreciated.
EDIT: I looked into this issue, and I found that there is something wrong with Carthage installed in the system, when I type in the following commands:
cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/
/bin/bash Scripts/bootstrap.sh -d
I get the following error:
Fetching dependencies
dyld: Symbol not found: __TMV6Result8AnyError
Referenced from: /usr/local/Cellar/carthage/0.19.1/bin/../Frameworks/CarthageKit.framework/Versions/Current/Frameworks/ReactiveSwift.framework/ReactiveSwift
Expected in: /Library/Frameworks/CarthageKit.framework/Versions/Current/Frameworks/Result.framework/Versions/A/Result
in /usr/local/Cellar/carthage/0.19.1/bin/../Frameworks/CarthageKit.framework/Versions/Current/Frameworks/ReactiveSwift.framework/ReactiveSwift
Scripts/bootstrap.sh: line 45: 26035 Abort trap: 6 carthage bootstrap $USE_SSH
Although I'm not sure how to fix this. Any input is greatly appreciated.
This can occur if you have an old version of /Library/Frameworks/CarthageKit.framework. If you're using the Homebrew version of Carthage, you don't need that copy of the framework, so it can be safely deleted.
i.e., Delete the framework in /Library/Frameworks
I have problem executing automation on real iOS device
system configuration:
appium 1.6.0
device iPhone 5c (ios 10.1)
xCode 8.2
the exception is:
[Xcode]
Testing failed:
No profiles for 'com.facebook.WebDriverAgentRunner' were found: Xcode couldn't find a provisioning profile matching 'com.facebook.WebDriverAgentRunner'.
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.1'
** TEST FAILED **
The following build commands failed:
Check dependencies
(1 failure)
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess.<anonymous> (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.<anonymous> (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
Error: xcodebuild failed with code 65
at SubProcess.<anonymous> (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.<anonymous> (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[debug] [XCUITest] Running ios real device reset flow
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess.<anonymous> (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.<anonymous> (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
In xCode it seems that when I tried to sign WebDriverAgentRunner it failed to create provisioning profile and
No profiles for 'com.facebook.WebDriverAgentRunner' were found
-----Edit-------
After trying to sign WebDriverAgentRunner with my free developer account I get
the following error in xcode
Please assist.
Make sure you are signed in with developer account in Xcode.
Navidate to the folder </path/to/appium>/node_modules/appium-xcuitest-driver/WebDriverAgent/
Open the WebDriverAgent.xcodeproj project in Xcode.
Change the bunlder identifier for WebDriverAgentLib, WebDriverAgentRunner from com.facebook.Webdriver** to your choice so you can sign it with your provisioning profile.
Build the project for WebDriverAgentLib, WebDriverAgentRunner and IntegrationApp targets.
On the terminal, navigate to </path/to/appium>/node_modules/appium-xcuitest-driver/WebDriverAgent/ and run xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=<device udid>' test
Last line in the logs should read Listening on USB.
Now run your appium scripts.
I am facing the same issue While signing "WebDriverAgentRunner" as it does not have any Target Application to select the corresponding field shows "None".
I found this link while searching for the solution:
https://github.com/appium/appium/issues/7086
It says
WebDriverAgent project has to be signed as well by the same developer signature as the main application under test.
Maybe it can help you, although I haven't tried it yet. But if you get any resolution, please share it here also.
Maybe your .ipa file is not developer signed. All application artefacts must be signed by developer identity in iOS for Appium to use it.
You need to pass Appium .ipa file that is signed with valid Developer identity.
Within the folder ~/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/there is an xcode project called WebDriverAgent.xcodeproj
Open this and under project -> general there are 2 targets you need to add your profile to. Add it to the Targets labels WebDriverAgentLib and WebDriverAgentRunner
Now run the project on your device (I used a real device)
That is how I solved the issue when it occurred for me
XCode decided to do an upgrade to iOS 9, and after that the app refuses to deploy to the emulator.
The build works ok, but it fails at this:
[INFO] : Invoking xcodebuild
[INFO] : Finished building the application in 40s 523ms
[INFO] : Launching iOS Simulator
[ERROR] : Project failed to build after 1m 21s 108ms
[ERROR] : An error occurred running the iOS Simulator (ios-sim exit code 1)
TRACE | titanium exited with exit code 1
ERROR | Error: ti run exited with error code 1
at ChildProcess.<anonymous> (/Users/stop/.appcelerator/install/5.0.1/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)
at ChildProcess.emit (events.js:117:20)
at Process.ChildProcess._handle.onexit (child_process.js:810:12)
Any ideas?
There's no updates that i can install, it says everything is up to date.
I have SDK 5.1.0. installed
Ok, so i did 2 things here, not sure which one fixed it.
I ran appc setup and let it finish
I removed all the errors around the icons and images that were missing and were the wrong size.
After that it just started working. Not sure which of the 2 fixed it.
This is the error I get when typing ionic emulate ios.
ENOENT, no such file or directory '/var/root/Library/Logs/CoreSimulator/6CA00327-FD21-4746-97B0-5515640534B9/system.log'
Error code 1 for command: ios-sim with args: launch,/Users/amirmeshkin/ionic/todo/platforms/ios/build/emulator/todo.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,--stderr,/Users/amirmeshkin/ionic/todo/platforms/ios/cordova/console.log,--stdout,/Users/amirmeshkin/ionic/todo/platforms/ios/cordova/console.log,--exit
Error: /Users/amirmeshkin/ionic/todo/platforms/ios/cordova/run: 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 ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
I faced similar issue it is permission issue to the folder where you are creating the project ...make the user as owner of the directory/folder using CHOWN.... and then try again