This application does not support this device's CPU type. - Xcode error

I am having issues installing a particular build onto a device using xcode. The transfer of the  build was working fine then suddenly a week or so ago it started giving me the below error in an alert box. However if i change the application name in the ‘Build for iOS’ form I can install it fine on any device with any provisioning profile.

App installation failed

This application does not support this device’s CPU type.

Have tried the following

  • Multiple devices - xcode simulator also rejects it

  • Different Corona builds (including current daily Version 2016.2818 (2016.1.29)

  • Refreshing xcode provisioning profiles (different profile)

  • Copied project files to different location on hdd 

  • Basic ts, reboot, restart application etc

  • Asking it nicely to install

Has anyone had similar issues or can anyone shed any light on this issue?

Edit:

Just tried deleting cached data from Library>Application Support and Library>Caches still same error

Edit2:

After removing xcode and reinstalling (7.2) I was still getting the same error. Removed all temp Corona files again still no change. Created and built a brand new BLANK project worked perfectly. Slowly (building at intervals) moved my the build.settings and main.lua code to the new project and then the modules, assets, icons etc to the new project… Finally I am able to transfer the build with the correct name to my devices not sure why though or for how long at this stage.

Edit3:

After some more tests I believe I have pinpointed it to be something to do with the main.lua and its file attributes/corruption (could have something to do with my file systems integrity) not sure. Will move on for now as I have it working. I hope no one ever has this issue if so see edit2…

That sounds very strange.

Maybe you could have a look at the generated Info.plist included in the app bundle to see if there’s any wierdness going on there…

Hey @ingemar I just had a look inside the Info.plist inside each .app file and they are exactly the same apart from the following:

CFBundleDisplayName = app name

CFBundleExecutable - app name

CFBundleName = app name

CFBundleVersion = date timestamp (Corona generated)

There is no sign of any CPU restrictions e.g UIRequiredDeviceCapabilities

I feel that there is some old data somewhere causing this error. I will re-install xcode today and try another computer later in the week to see if I can pinpoint its source. Very strange indeed.

What happens if you try and build the Hello World sample app?

Rob

Hey Rob,

Yeah the Hello World works fine and I have managed to get my project working by creating a completley new main.lua/build.settings and transferring the code over piece by piece and building at logical points to see if it would break. Luckily it didn’t. Still not sure what the exact issue is/was as I cannot spend anymore time on it. As far as I can see it doesn’t like my existing main.lua (actual file not code within) or it may have been something else that I failed to test for.

If it rears its ugly head again I will delve deeper.

Edit: or it is something out of my control

Edit2: Its back and I am getting the same from another project, back to the drawing board.

What is in your build.settings?

That sounds very strange.

Maybe you could have a look at the generated Info.plist included in the app bundle to see if there’s any wierdness going on there…

Hey @ingemar I just had a look inside the Info.plist inside each .app file and they are exactly the same apart from the following:

CFBundleDisplayName = app name

CFBundleExecutable - app name

CFBundleName = app name

CFBundleVersion = date timestamp (Corona generated)

There is no sign of any CPU restrictions e.g UIRequiredDeviceCapabilities

I feel that there is some old data somewhere causing this error. I will re-install xcode today and try another computer later in the week to see if I can pinpoint its source. Very strange indeed.

What happens if you try and build the Hello World sample app?

Rob

Hey Rob,

Yeah the Hello World works fine and I have managed to get my project working by creating a completley new main.lua/build.settings and transferring the code over piece by piece and building at logical points to see if it would break. Luckily it didn’t. Still not sure what the exact issue is/was as I cannot spend anymore time on it. As far as I can see it doesn’t like my existing main.lua (actual file not code within) or it may have been something else that I failed to test for.

If it rears its ugly head again I will delve deeper.

Edit: or it is something out of my control

Edit2: Its back and I am getting the same from another project, back to the drawing board.

What is in your build.settings?