rinogo rinogo - 1 year ago 173
iOS Question

Why is XCode ignoring my Deployment Target?

I have an iPad running iOS 7.0.4 connected to my machine. I am attempting to deploy an Ionic (Cordova) project to the device.

My Deployment Target is set to 7.0:

enter image description here

However, I continue getting the "deployment target" error message:

X's iPad runs iOS 7.0.4, which is lower than Y's minimum deployment target. Change your project's minimum deployment target or upgrade X's iPad's version of iOS.

How can I get XCode to successfully deploy to my iPad?

Answer Source

I figured it out. Cordova version 4.0.0+, upon which Ionic depends, requires iOS 8.0+. It is hard-coded into the platforms/ios/cordova/build.xcconfig file:


This hard-coded value was overriding any changes I made in the Xcode GUI. I was able to get my project to deploy on my device by changing 8.0 to 7.0 in build.xcconfig.

For others who are also using Ionic/Cordova, I suppose the solution is disappointing but simple: only target iOS 8.0 and up.