Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application Data bundles in Xcode 6. Always crashes or shows error

How do you correctly use Application Data bundles in Xcode 6? I exported a .xcappdata file from a device, added it to my workspace, and selected it in the Run Options of a scheme.

Whenever I try to run the simulator with iOS 8.0, I get the following error, even on repeated launches, manual launches, etc:

Application data package not copied to the Simulator
It appears you are running 'REDACTED.app' on the iPad Air Simulator for the first time, and therefore do not yet have a data folder created. The application data package will be installed the next time you run your app in the Simulator.

Trying to use the simulator with iOS 7.1 crashes Xcode.

Does this feature just not work anymore with the changes made to the filesystem?


Tried again on Xcode Version 6.1.1 (6A2008a) and it (sometimes) crashes Xcode now, hopefully that means it will be get fixed soon...

like image 674
Ashton-W Avatar asked Oct 01 '14 01:10

Ashton-W


1 Answers

I'm using Xcode 8.1 and when I tried to add the .xcappdata file Xcode crashed.

I solved it by cleaning the app and then I tried to add it in another target and it worked. Afterwards I tried to put it again in the target I wanted it in and it worked as well.

Unfortunately I'm not sure about which of these steps fixed it but I hope it to be useful to someone!

like image 59
Oriol Avatar answered Oct 17 '22 14:10

Oriol