最新消息:20210917 已从crifan.com换到crifan.org

[记录]MacBook中连接iPhone 6真机作为Xcode项目的调试设备

Xcode crifan 4113浏览 0评论

把iPhone连接到mac中,自动打开iTunes同步了:

auto open itunes when connect iphone to mac

然后去打开Xcode,看看能否看到连接上的iphone:

Product-》Destination中可以看到对应的iPhone6
xcode Product Destination show iPhone6
就是我自己的iPhone设备。
点击运行,结果弹出警告对话框:
iphone 6 is busy processing symbol file
以及:
[已解决]用Xcode连接iPhone真机调试出错:Failed to code sign
解决了Code sign的问题后,即可继续编译和调试:
compile swift source files for iphone
然后提示编译成功:
project build succedeed
然后提示需要解锁真机,才能继续:
unlock iphone 6 to continue
然后去iPhone端,屏幕解锁后,即可在真机上运行看到效果:
unlock real iphone then can see real effect ios app
真机中的运行效果的截图如下:
screenshot on real iphone for running ios app jiandao
 message chat view for jiandaonew group contact of jiandao
对应的,拔掉iPhone后,Xcode中也会及时提醒的:
Lost connection to “iPhone 6”.
Restore the connection to “iPhone 6” and run “JianDao” again, or if “JianDao” is still running, you can attach to it by selecting Debug > Attach to Process > JianDao.
Lost connection to iPhone 6

转载请注明:在路上 » [记录]MacBook中连接iPhone 6真机作为Xcode项目的调试设备

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
94 queries in 0.190 seconds, using 23.37MB memory