Andriko13
Andriko13

Reputation: 990

App works on Simulator but not device. Weird error message? XCODE

As the title says, the code is perfectly fine and works on the simulator as expected. When I try to run the same code on device, I get this error: 2014-10-09 23:00:07.180 Color Speed[1129:538481] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[_NSPlaceholderData initWithContentsOfFile:options:error:]: nil file argument' What does this error even mean? I would try to debug, but I have no idea where to start and have verified every line of code works (I barely started this project).

Upvotes: 3

Views: 927

Answers (1)

Ken Kuan
Ken Kuan

Reputation: 798

Look the reason. It show that your file argument is nil. Most of such cases are due to different file path between simulator and device. Check your code about loading file and compare the path between simulator and device.

Upvotes: 2

Related Questions