简体   繁体   English

Xcode将多个目标部署到iOS设备

[英]Xcode Deploy Multiple Targets to iOS Device

When I select my target in Xcode and run it on my iPad it overwrites the other target in the same Xcode project. 当我在Xcode中选择目标并在iPad上运行它时,它将覆盖同一Xcode项目中的另一个目标。 Is there a way to have both targets on the device simultaneously? 有没有办法将两个目标同时放在设备上?

Give them a different bundle ID in your info.plist. 在您的info.plist中给他们一个不同的捆绑包ID。 This will require different mobile provisioning files for each target. 这将需要为每个目标使用不同的移动配置文件。 Most people have one target for debugging and development, and another for the production which strips out testing and debugging code. 大多数人都有一个目标用于调试和开发,而另一个目标则是将测试和调试代码删除的产品。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM