Giter Site home page Giter Site logo

xcodebuild's Introduction

首先进入到工程文件所在的目录。比如我的文件某个工程放在(.xcodeproj文件所在的目录) /Users/xxx/xxx

然后cd /Users/xxx/xxx 到这个目录下

##第一步先编译生成testDemo.xcarchive 文件。

xcodebuild -archivePath "testDemo.xcarchive" -project PcAppleSdkDemo.xcodeproj -sdk iphoneos -scheme "PcAppleSdkDemo" -configuration "Release Adhoc" archive

//这里生成的testDemo.xcarchive文件目录与.xcodeproj是同一目录

//-archivePath 生成的.xcarchive 名字

//-project 目标文件名

//-scheme 项目的目标文件名

##第二步把生成的testDemo.xcarchive文件打包成ipa 格式。

xcodebuild -exportArchive -exportFormat IPA -exportProvisioningProfile "qingyunDeveloper" -archivePath "testDemo.xcarchive" -exportPath "testDemo.ipa"

成功后显示

** EXPORT SUCCEEDED **

//这时的ipa 文件存放目录与.xcodeproj是同一目录

//-exportProvisioningProfile 这个是选择的证书 你的证书名是什么这里就填写什么。

//参考资料 : http://minhdanh2002.blogspot.jp/2014/06/archiving-ios-projects-from-command.html

xcodebuild's People

Contributors

qingjoin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.