构建,部署和从终端中运行iPhone模拟器 [英] Build, deploy and run iphone simulator from terminal

查看:228
本文介绍了构建,部署和从终端中运行iPhone模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的Mac和放大器; X $ C $℃。请告诉我iphone .X $ C $的CProject程序外交叉code IDE下面的任务:

I'm new to mac & xcode. Please tell me the procedure for iphone .xcodeproject outside xcode IDE for below tasks:


  1. 建设 - 做用x codebuild命令

  2. 部署模拟器?

  3. 在模拟器中运行。?

如何实现这一目标用蚂蚁/ AppleScript的?

How to achieve this using ant/Applescript?

在此先感谢

推荐答案

<一个href=\"http://stackoverflow.com/questions/517463/how-can-i-install-a-ipa-file-to-my-iphone-simulator\">enter此处链接描述我知道如何建立,并从明面X $ C $ç即与终端创建.app文件。打开终端去那里的项目创造的具体文件夹,使用此命令。

enter link description hereI know how to build and create .app file from out side Xcode i.e. with terminal. Open the terminal and go the specific folder where the project is created and use this command..

xcodebuild -workspace 'WORKSPACENAME.xcworkspace' -scheme 'APPNAME' -configuration "Debug" -sdk iphoneos6.0 -arch "armv7 armv7s" CONFIGURATION_BUILD_DIR='OUTPUT_DIRECTORY'

如果你有静态库连接到该项目,然后

if you have static library attached to the project then

xcodebuild -workspace 'WORKSPACENAME.xcworkspace' -scheme 'APPNAME_LIB' -configuration "Debug-iphoneos" -sdk iphoneos6.0 -arch "armv7 armv7s" CONFIGURATION_BUILD_DIR='OUTPUT_DIRECTORY'
xcodebuild -workspace 'WORKSPACENAME.xcworkspace' -scheme 'APPNAME_LIB' -configuration "Debug" -sdk  iphoneos6.0  -arch "armv7 armv7s" CONFIGURATION_BUILD_DIR='OUTPUT_DIRECTORY'

也在这里是一些有用的链接。

also here is some useful links..

>  [https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.html][2]
> [http://stackoverflow.com/questions/947317/can-i-install-an-app-to-the-simulator-without-the-source-code][3]
> [http://stackoverflow.com/questions/517463/how-can-i-install-a-ipa-file-to-my-iphone-simulator][4]

这篇关于构建,部署和从终端中运行iPhone模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆