0
我在写一个shell脚本,它可以帮助我自动运行我的xcode ios项目并在模拟器上启动它的构建。按照现在我能够建立我的Xcode项目,启动模拟器和自动安装应用程序在模拟器上。但未能启动模拟器并抛出一个错误之后推出的模拟器,应用程序崩溃的应用程序,命令行xcode项目运行抛出错误FBSOpenApplicationErrorDomain错误4
Build Begin
Build settings from command line:
CONFIGURATION_BUILD_DIR = /Users/username
ONLY_ACTIVE_ARCH = YES
=== BUILD TARGET BuddyAdmin OF PROJECT BuddyAdmin WITH CONFIGURATION Debug ===
Check dependencies
** BUILD SUCCEEDED **
Instruments Usage Error : No template (-t) specified
instruments, version 6.3 (57536)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
An error was encountered processing the command (code=4):
The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.)
Build End
logout
然后我的脚本,
#!/bin/bash
echo Build Begin
xcodebuild -project /Users/username/Work/My_Projects/BuddyProjects/BuddyAdmin/BuddyAdmin.xcodeproj -configuration Debug -target BuddyAdmin ONLY_ACTIVE_ARCH=YES CONFIGURATION_BUILD_DIR=/Users/username
xcrun instruments -w "iPad 2 (8.3 Simulator)"
xcrun simctl install booted /Users/username/Buddy\ Admin\ 3.app
xcrun simctl launch booted prefix.com.coname.proname
echo Build End
我无法找出确切的错误是。没有任何记录。我搜索了很多,我发现独特的答案是重置模拟器,干净的项目和干净的派生数据,但它不会为我工作。我正在寻找错误和解决方案的实际原因。
我得到了我的问题是谎言在xcodebuild命令..现在我可以自动运行所有。 – Tirth