Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode won't build to device

This problem has been KILLING me. I've been working on this app for 8 Months, and I am so close to finishing, I just can't seem to build for device. Building for the simulator works fine, but device always gives me the SAME 2 errors.

The 1st Error: ddgd "Instruction requires a CPU feature not currently enabled" From googling, I've found this probably means I'm not linking a binary I should be, but I'm not sure.

The 2nd Error: enter image description here

If you can't read it, it says: Generating JWFNS.app.dSYM ... error: unable to open executable '/Users/ajr1188/Library/Developer/Xcode/DerivedData/JWFNS-azshgysfabycfagnebotitpcyaww/Build/Products/Debug-iphoneos/JWFNS.app/JWFNS'

This is the big one. I cannot seem to build the .app.dSYM file properly. I went in and deleted the build folder, I looked at EVERY stackoverflow question I could find and tried changing any random thing mentioned in another question, but all of it is to no avail. I'm so suck right now. AHH. PLEASE. Any help would be so appreciated!

like image 775
Andrew Avatar asked Nov 17 '25 06:11

Andrew


2 Answers

Maybe your project has become hopelessly corrupted. One thing to try is to start a brand new project and copy/import all your sources/assets into the new project to see if that fixes the problem.

Another less nuclear (but perhaps more time consuming) approach is to binary search the build. Exclude absolutely everything except main.m and see if that fixes the problem. If it does, include half your sources, and buid again....repeat, trying to narrow in on the problem spot. Maybe a file or group of files has received special build settings that don't belong there.

like image 165
Bogatyr Avatar answered Nov 19 '25 23:11

Bogatyr


I've had very similar problems, I cant remember the exact error message but it was very similar. Are you able to make a new project that will run on your device? if so (and I know this sounds bad but it's worth a try) Create a new project and simply copy all the code and resources across and see if it still works. If it doesn't then there is something wrong with you code and you can continue trying to isolate the problem from there. Hope this is helpful.

like image 44
Jordan Avatar answered Nov 19 '25 21:11

Jordan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!