- 浏览: 1444572 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (691)
- linux (207)
- shell (33)
- java (42)
- 其他 (22)
- javascript (33)
- cloud (16)
- python (33)
- c (48)
- sql (12)
- 工具 (6)
- 缓存 (16)
- ubuntu (7)
- perl (3)
- lua (2)
- 超级有用 (2)
- 服务器 (2)
- mac (22)
- nginx (34)
- php (2)
- 内核 (2)
- gdb (13)
- ICTCLAS (2)
- mac android (0)
- unix (1)
- android (1)
- vim (1)
- epoll (1)
- ios (21)
- mysql (3)
- systemtap (1)
- 算法 (2)
- 汇编 (2)
- arm (3)
- 我的数据结构 (8)
- websocket (12)
- hadoop (5)
- thrift (2)
- hbase (1)
- graphviz (1)
- redis (1)
- raspberry (2)
- qemu (31)
- opencv (4)
- socket (1)
- opengl (1)
- ibeacons (1)
- emacs (6)
- openstack (24)
- docker (1)
- webrtc (11)
- angularjs (2)
- neutron (23)
- jslinux (18)
- 网络 (13)
- tap (9)
- tensorflow (8)
- nlu (4)
- asm.js (5)
- sip (3)
- xl2tp (5)
- conda (1)
- emscripten (6)
- ffmpeg (10)
- srt (1)
- wasm (5)
- bert (3)
- kaldi (4)
- 知识图谱 (1)
最新评论
-
wahahachuang8:
我喜欢代码简洁易读,服务稳定的推送服务,前段时间研究了一下go ...
websocket的helloworld -
q114687576:
http://www.blue-zero.com/WebSoc ...
websocket的helloworld -
zhaoyanzimm:
感谢您的分享,给我提供了很大的帮助,在使用过程中发现了一个问题 ...
nginx的helloworld模块的helloworld -
haoningabc:
leebyte 写道太NB了,期待早日用上Killinux!么 ...
qemu+emacs+gdb调试内核 -
leebyte:
太NB了,期待早日用上Killinux!
qemu+emacs+gdb调试内核
最有用的一段
1.建立 “钥匙串”
如图,比如家里钥匙串为 “haohao”
创建证书
(1)
(2).
(3)
(4)
后面默认
(5)
2.xcode选择设备,插入设备
右上角,Organizer
选择设备,并开发者模式
3.在 中间的设置
build setting 中的
code signing Identiy
中andy ios sdk 设置为 “haohao”
4.在build Phase 中的右下角
Add build Phase
使用Add run shell
如图,shell内容如下 注意这里的“haohao” 为刚才生成的钥匙串的名字
其他的都不变,什么“my.company.”之类的都不变
以上内容注意
中需要用到一个python文件生成.xcent文件到app中,
------------
还要设置一下一些,一下这些是借鉴别人的文章
到
/Users/apple/Library/Developer/Xcode/DerivedData/test1-gmkvwytfnpktwcfdsyetryfgpitk/Build/Products/Debug-iphoneos
目录下找到 test1.app拖拽到itunes,再拖拽出来就变成ipa了,用91或者itunes或者nginx把ipa文件传到iphone上就可以了
---------
5.生成ipa
到
以上是对这篇文章的修正
http://blog.csdn.net/stoneson/article/details/7340332
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate if [ "${PLATFORM_NAME}" == "iphoneos" ] || [ "${PLATFORM_NAME}" == "ipados" ]; then /Applications/Xcode.app/Contents/Developer/iphoneentitlements/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent"; codesign -f -s "haohao" --entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/" fi
1.建立 “钥匙串”
如图,比如家里钥匙串为 “haohao”
创建证书
(1)
(2).
(3)
(4)
后面默认
(5)
2.xcode选择设备,插入设备
右上角,Organizer
选择设备,并开发者模式
3.在 中间的设置
build setting 中的
code signing Identiy
中andy ios sdk 设置为 “haohao”
4.在build Phase 中的右下角
Add build Phase
使用Add run shell
如图,shell内容如下 注意这里的“haohao” 为刚才生成的钥匙串的名字
其他的都不变,什么“my.company.”之类的都不变
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate if [ "${PLATFORM_NAME}" == "iphoneos" ] || [ "${PLATFORM_NAME}" == "ipados" ]; then /Applications/Xcode.app/Contents/Developer/iphoneentitlements/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent"; codesign -f -s "haohao" --entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/" fi
以上内容注意
中需要用到一个python文件生成.xcent文件到app中,
apple:test1.app apple$ cat /Applications/Xcode.app/Contents/Developer/iphoneentitlements/gen_entitlements.py #!/usr/bin/env python import sys import struct if len(sys.argv) != 3: print "Usage: %s appname dest_file.xcent" % sys.argv[0] sys.exit(-1) APPNAME = sys.argv[1] DEST = sys.argv[2] if not DEST.endswith('.xml') and not DEST.endswith('.xcent'): print "Dest must be .xml (for ldid) or .xcent (for codesign)" sys.exit(-1) entitlements = """ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>application-identifier</key> <string>%s</string> <key>get-task-allow</key> <true/> </dict> </plist> """ % APPNAME f = open(DEST,'w') if DEST.endswith('.xcent'): f.write("\xfa\xde\x71\x71") f.write(struct.pack('>L', len(entitlements) + 8)) f.write(entitlements) f.close() apple:test1.app apple$
------------
还要设置一下一些,一下这些是借鉴别人的文章
apple:Desktop apple$ cat xcode.txt /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk sudo cp SDKSettings.plist SDKSettings.plist.orig 进行编辑 sudo vim SDKSettings.plist 将以下两段中的YES改为NO <key>CODE_SIGNING_REQUIRED</key> <string>YES</string> 和 <key>ENTITLEMENTS_REQUIRED</key> <string>YES</string> cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform sudo cp Info.plist Info.plist.orig sudo vim Info.plist 将全部的XCiPhoneOSCodeSignContext 修改成 XCCodeSignContext,3处 mkdir /Applications/Xcode.app/Contents/Developer/iphoneentitlements cd /Applications/Xcode.app/Contents/Developer/iphoneentitlements curl -O http://www.alexwhittemore.com/iphone/gen_entitlements.txt mv gen_entitlements.txt gen_entitlements.py ----------------- sh-3.2# cat gen_entitlements.txt #!/usr/bin/env python import sys import struct if len(sys.argv) != 3: print "Usage: %s appname dest_file.xcent" % sys.argv[0] sys.exit(-1) APPNAME = sys.argv[1] DEST = sys.argv[2] if not DEST.endswith('.xml') and not DEST.endswith('.xcent'): print "Dest must be .xml (for ldid) or .xcent (for codesign)" sys.exit(-1) entitlements = """ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>application-identifier</key> <string>%s</string> <key>get-task-allow</key> <true/> </dict> </plist> """ % APPNAME f = open(DEST,'w') if DEST.endswith('.xcent'): f.write("\xfa\xde\x71\x71") f.write(struct.pack('>L', len(entitlements) + 8)) f.write(entitlements) f.close() sh-3.2# -------------------- sh-3.2# mv gen_entitlements.txt gen_entitlements.py sh-3.2# ls gen_entitlements.py sh-3.2# chmod 777 gen_entitlements.py 看图 把xcode的工程的所有的code sign去掉 ---------- export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate if [ "${PLATFORM_NAME}" == "iphoneos" ] || [ "${PLATFORM_NAME}" == "ipados" ]; then /Applications/Xcode.app/Contents/Developer/iphoneentitlements/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent"; codesign -f -s "haohao" --entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/" fi -------------
到
/Users/apple/Library/Developer/Xcode/DerivedData/test1-gmkvwytfnpktwcfdsyetryfgpitk/Build/Products/Debug-iphoneos
目录下找到 test1.app拖拽到itunes,再拖拽出来就变成ipa了,用91或者itunes或者nginx把ipa文件传到iphone上就可以了
---------
5.生成ipa
到
以上是对这篇文章的修正
http://blog.csdn.net/stoneson/article/details/7340332
发表评论
-
facebook的socketrocket总结
2018-03-19 13:36 1379最近看了开源的网易的demo https://netease. ... -
使用websocket,双ibeacons判断方向
2014-12-16 04:08 1989只调用ibeacon的接口 // // ViewCon ... -
ios的页面跳转
2014-12-03 17:30 1336一种通过导航,一种直 ... -
打包ipa
2014-11-14 23:10 7361.新建一个文件夹命名为:Payload 2.将buid生成的 ... -
理解iOS7的Multipeer Connectivity框架
2014-11-13 23:39 882例子可跑 http://www.oschina.net/tr ... -
ios指南针
2014-10-25 17:06 1049参考http://blog.sina.com.cn/s/blo ... -
linux下编译objectc
2014-10-23 01:24 861编译静态库给ios使用 http://www.tuicool. ... -
ios加速计和陀螺仪
2014-10-22 23:03 1210ios设备中有的加速计可以测量出加速度和重力。陀螺仪可用于确定 ... -
ios仿微信的demo
2014-10-20 00:31 2299610月19日闲的蛋疼,做了个 仿微信的聊天工具 git地址:h ... -
自制微信的ui
2014-10-19 22:28 879参考http://ios.9tech.cn/news/2013 ... -
ios8的tableView使用
2014-10-18 20:34 835ios8是main.storyboard 不是 ... -
ios的opencv的helloworld
2014-10-12 23:38 941xcode6, 学习的源码在 http://opencv.or ... -
ios opencv的一些资源
2014-10-11 00:08 775opencv for ios build http://ww ... -
ios客户端websocket的helloworld
2014-10-09 02:11 23147ios8,xcode6 https://github.com/ ... -
ios8的定位,蓝牙与ios7的区别
2014-10-06 23:27 3619以前程序的地理定位功能在iOS8 版上不能工作了(也可能其 ... -
ios的helloworld 2
2014-09-09 21:51 1267参考视频: www.imooc.com/learn/149 S ... -
ios的helloworld
2014-09-08 19:51 670参考http://www.macx.cn/thread-210 ... -
ios上使用gcc
2012-07-18 23:21 3209安装network-cmds apptitude iphone ... -
m3u8在windows上预览
2012-06-12 14:25 6967<html> <head> ... -
cocoahttpserver
2012-03-21 22:19 1919https://github.com/robin/cocoa- ...
相关推荐
Xcode 4.1/4.2/4.3/4.4/4.5 + iOS 5.1.1免证书(iDP)开发+真机调试+生成IPA全攻略
本人亲测,可以在ios5.1.1的越狱后的ipod上完美运行
xcode8调试IOS11 Shift+Command+G进入 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 把解压后的文件复制进去。
iOS9.3.2,iOS10 SDK 让你你的xocde5、6支持调试iOS9,iOS10。 源自Xcode_8_beta6,2016-08-24
MAC OS X 10.8 + Xcode 4.4 下实现无证书真机调试 IOS5.1.1
IOS APP应用开发 微博 Xcode 详细代码
iOS 11 App Development Essentials Learn to Develop iOS 11 Apps with Xcode 9 and Swift 4
xcode支持iOS15.2和iOS15.4
Beginning iOS Storyboarding- Using Xcode 英文原版高清pdf 英文书,推荐英文好的童鞋学习
下载解压放到/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport即可,重启Xcode即可,无需升级系统和Xcode
Xcode iOS11.0版本的配置包 给需要真机调试iOS11.0系统版本手机又不想升级Xcode的童鞋 为什么会有摘要必须大于100字节这种逆天的设定!!!
提供大家一起下载 可以真机测试大家一起来用 】 、
iOS Game Programming with Xcode and Cocos2d(完整版) 自己收集的
分享 如何命令打包生成 ipa, 以及解决存在的坑,如出现xcodebuild: error: inv)lid option '-exportForm)的报错, 分享解决
打开Finder 按下: Command⌘+Shift⇧+G 输入: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 把文件解压到这个文件夹下,重新启动Xcode,连上真机运行,Xcode会开始下载...
需要的请下载, 复制到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 然后把你需要的调试包拖进去
不想更新Xcode的,还想在Xcode 上运行的可以将SDK移入指定路径/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
将本脚本放到您的IOS项目里,cd到项目里,然后执行./run 项目名。然后项目就会自动编译-》xcarchive-》输出ipa到 output文件夹
将Xcode适配可以调试、编译、运行、打包系统版本号为iOS 16.0 版本的设备,解决"Could not find Developer Disk Image"问题
iOS 13.6 xcode 真机包iOS 13.6 xcode 真机包