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?
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.
I understand why. I’m just wondering if there are any tricks or tips which might help me automate this.
if you add it with relative path, it will point to the right base sdk when you switch between simulator and device.
When you do “add exiting frameworks”, there is a window that tells you reference type, it should be Default (which should point to Relative to Current SDK)
then when you change the SDK to device or simulator it will look from the active SDK frameworks folder.