我是mac和amp;的新手Xcode中。请告诉我xcode IDE之外的iphone .xcodeproject用于以下任务的程序:
如何使用ant / Applescript实现这一目标?
提前致谢
答案 0 :(得分:2)
enter link description here我知道如何从外部Xcode构建和创建.app文件,即使用终端。打开终端并转到创建项目的特定文件夹,然后使用此命令..
xcodebuild -workspace 'WORKSPACENAME.xcworkspace' -scheme 'APPNAME' -configuration "Debug" -sdk iphoneos6.0 -arch "armv7 armv7s" CONFIGURATION_BUILD_DIR='OUTPUT_DIRECTORY'
如果你有一个附加到项目的静态库,那么
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'
这里也是一些有用的链接..
> [https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.html][2]
> [https://stackoverflow.com/questions/947317/can-i-install-an-app-to-the-simulator-without-the-source-code][3]
> [https://stackoverflow.com/questions/517463/how-can-i-install-a-ipa-file-to-my-iphone-simulator][4]