Build, deploy and run iphone simulator from terminal

前端 未结 1 1189
慢半拍i
慢半拍i 2021-01-24 04:15

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

  1. Build- done using xcodebuild command
相关标签:
1条回答
  • 2021-01-24 04:52

    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]
    > [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]
    
    0 讨论(0)
提交回复
热议问题