作者:来杯冰柠檬水 | 来源:互联网 | 2023-05-18 23:43
HowcanIaddareferencetheCoreLocationframeworktomyappandgetittocompileforboththeSi
How can I add a reference the CoreLocation framework to my app and get it to compile for both the Simulator and a device without needing to delete and re-add the frame when switching platforms?
如何将CoreLocation框架的引用添加到我的应用程序并让它为Simulator和设备编译而无需在切换平台时删除和重新添加框架?
I'm writing a multi player game. Sometimes I test by putting my app on a device and also in the simulator and debug in simulator side. But I've recently added some CoreLocation services to my app and when I switch the platform from Simulator to Device, I need to remove the CoreLocation reference and re-add it from a different location. Then, when switching back to Simulator, I need to do it again.
我正在写一个多人游戏。有时我通过将我的应用程序放在设备上以及模拟器中进行测试并在模拟器端进行调试。但我最近在我的应用程序中添加了一些CoreLocation服务,当我将平台从Simulator切换到Device时,我需要删除CoreLocation引用并从其他位置重新添加它。然后,当切换回模拟器时,我需要再次进行。
I understand why. I'm just wondering if there are any tricks or tips which might help me automate this.
我理解为什么。我只是想知道是否有任何技巧或技巧可以帮助我实现自动化。
5 个解决方案