首页 > 如果构建ios应用

如果构建ios应用

如何构建ios应用


刚好我最近在做这个,有一整套的解决方案:
1,使用xcodebuild构建工程,再使用xcrun打包成ipa;
2,在xcode中将project配置好数字签名,在用xcodebuild构建的时候就会自动使用对应的签名;
3,在xcodebuild中签名和xcrun中签名都是一样的,都可以;
4,在ant中调用exec时参数line和value的区别是:line是直接调用命令,而value就是调用sh脚本,可以传参数;
5,在macos中设置env的值:修改/etc/profile,添加值对,最后再export下就可以了;
6,解决:命令行调用codesign时报:User interaction is not allowed:
Open the Keychain Access
Right click on the private key
Select "Get Info"
Select "Access Control" tab
Click "Allow all applications to access this item"
Click "Save Changes"
Enter your password

然后,先用命令,security list-keychains查看,然后在调用
security unlock-chain "/Users/test/Library/Keychains/login.keychain" -p password (可以把这行写在脚本里面。)

7,只是编译ipad程序就armv7就可以了所有的ipad都是armv7的格式(否则导致签名错误);


http://lug.ustc.edu.cn/wiki/doc/smart...


用构建ios应用的方法来构建。

【热门文章】
【热门文章】