'app name' specifies a minimum os of version 4.3, which is too high to be installed on the iPhone. 4.2 isn't an option - xcode

'app name' specifies a minimum os of version 4.3, which is too high to be installed on the iPhone
This is the error I am receiving when I attempt to deploy my application to my iPhone, which is on the latest version, 4.2. I have searched everywhere in an attempt to find a solution to this issue, and everything simply says to change the build to target the previous OS. However...
...I do not see 4.2 as an availible option. 4.2 is the highest version I can update my iPhone to, and 4.3 is the lowest version of the SDK I have.
How can I fix this?

Just set the deployment target of the project to eg. iOS 4.0.

You only have the 4.3 SDK installed, so you can do as JustSid says and set your Deployment Target to something lower than what your device has installed.

Related

Update Xcode 10.1 to 10.2 on High Sierra 10.13.6

I'm trying to update Xcode 10.1 to 10.2 on my High Sierra 10.13.6 version.
The App Store window shows the update button, but the problem is after hitting that button, the circle on the upper-left corner is just rotating for hours and nothing else happens!
Since the difference between the two versions is not that huge, the update naturally must be downloaded and installed after some time, but in effect it's not that way!
How to solve that issue, please?
I am using Xcode10.2 on High Sierra 10.13.6, and can build several projects for my iPhone 5s and 6s Plus which working on iOS12.2. The process is similar to Damnum’s.
Change the name of working Xcode like Xcode10.1.
Download Xcode 10.2 and copy it into Applications folder. (The name is of course Xcode.)
Edit Xcode.app/Contents/Info.plist and change the Minimum System Version to 10.13.6 with Xcode10.1
Edit Xcode.app/Contents/Applications/FileMerge/Contents/Info.plist and change the Minimum System Version to 10.13.6 with Xcode10.1
Edit Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/Info.plist and change the Minimum System Version to 10.13 with Xcode10.1
Launch Xcode (it is 10.2) and install the rest of items.
Now you can use iOS12.2 features in the Xcode.
I tested my own projects and several sample projects from iOS 12 App Development Essentials by Neil Smyth. All of them work fine on my devises including camera app.
Follow these steps:
Download Xcode 10.2 via this link (you need to be signed in with your Apple Id): https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_10.2/Xcode_10.2.xip and install it
Edit Xcode.app/Contents/Info.plist and change the Minimum System Version to 10.13.6
Do the same for Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/Info.plist (might require a restart of Xcode and/or Mac OS to make it open the simulator on run)
Replace Xcode.app/Contents/Developer/usr/bin/xcodebuild with one from 10.1
The difference between the two versions is not that huge for example Swift 5.0 allows to build projects without the embedded Swift Libraries.
Xcode 10.2 doesn't run in High Sierra. It requires macOS 10.14.3
As it doesn't appear to have been mentioned in the existing answers/comments, for completeness, the last version of Xcode to run on High Sierra (macOS 10.13.2) is version 9.4.1, but on macOS 10.13.6 the last supported version of Xcode is version 10.1
From Xcode want install on high Sierra 10.13.6:
https://en.wikipedia.org/wiki/Xcode has a good summary of compatibility versions. Looks like for 10.13.6 you'll need Xcode 9.4.1
Looking on https://developer.apple.com/download/more/
Command_Line_Tools_macOS_10.13_for_Xcode_9.4.1.dmg
Xcode_9.4.1.xip
However, once 9.4.1 is installed upon 10.13.6, then there is an update offered for the CLT on the AppStore to version 10.1,
When the Xcode 7.0 - 10.x section of the Wikipedia page is checked, it can be seen that the quote above is not (entirely) correct, depending upon which version of High Sierra you have installed:
For 10.13.2, Xcode 9.4.1 is the last supported version
Command_Line_Tools_macOS_10.13_for_Xcode_9.4.1.dmg
Xcode_9.4.1.xip
For 10.13.6, Xcode 10.1 is the last supported version
Command_Line_Tools_macOS_10.13_for_Xcode_10.1.dmg
Xcode_10.1.xip

What is the minimum version of Xcode I can use for submission to app store

I have an app on the appstore currently that is built using Xcode 6 with a deployment target of iOS 7. The recent release Xcode 6.3, however only works on OSX 10.10
Can I submit updates to the app store by building on an earlier version of Xcode (6.2 in my case) because I am unable to update OSX to 10.10? Does Apple release documentation about this when it releases a new Xcode version? The only thing I found was this
https://developer.apple.com/library/ios/qa/qa1806/_index.html
which says that I should aim to build with the latest version of Xcode but does not mention if the app would be rejected/approved if built with a lower version.
The minimum Version of Xcode is 5.1.1 as stated in iTunesConnect when you want to upload a new binary of your app. This information does obviously include, that you can of course use Xcode 6.2 for AppStore submission.
Hope that helps :)
You can build using the lower version of the SDK within reason I believe. Some older compilers may be missing features that Apple will eventually require, but in the short term shipping with 6.2 won't really hurt much.
That said, Xcode 6.3 should include the iOS SDK. Make sure you got it from the App Store, which includes the full suite of stuff.

Calabash iOS: Setting location does not work

I am using set_location on Calabash iOS 0.9.169, but it does not seem to take effect.
This has worked earlier and I think might have broken after upgrading to 0.9.169.
I am using:
set_location(latitude: latitude.to_f,longitude: longitude.to_f)
But the simulator still reports either no location, or the location selected in Debug -> Location, if one is set there.
Is this a known issue ? Any workarounds or things to try ? I have debugged through the Ruby code and the uia call to set location succeeds.
Version info:
~> calabash-ios version
0.9.169
~> xcodebuild -version
Xcode 5.1.1
Build version 5B1008
Calabash framework version: 0.9.169
UPDATE FOR Xcode 7 Setting the location is broken for iOS Simulators and physical devices.
I recently investigated this issue.
I can confirm that setting the location works in iOS 7 Simulators, but does not work on physical devices.
We are tracking this issue here: https://github.com/calabash/calabash-ios/issues/377

Xcode version / AppStore

When ready to present an app to put on the appStore; is there a minimum version of Xcode required? Or any version however old is good?
Thanks
According to Apple,
You should always use the latest Xcode (requires Apple ID to login)
Note: You can build with the very latest SDK, and run your app on an earlier operating system. The Deployment Target build setting controls the lowest operating system version that your app will run on. This setting is independent of the Base SDK build setting.
Using any other SDK is TEMPORARY
It's important to understand that using an older SDK is a temporary workaround, not a solution. Issues preventing your app from using the latest SDK should be fixed as soon as possible. It will be much easier to fix these issues while the older build system is still supported.
Latest & Easiest way
Application Loader
You need to have some minimum version of the XCode, but no need to have the very latest one...
And for easy steps & guidelines to submit app in to appstore please check out the following url
Easy Steps for App Store Submission & Certificates creation - By iOSCodeGUIDE

can't run my iphone app on an ipod

I am trying to test my new application i just wrote on my daughters ipod. I paid the 100 bucks to join development team for apple and then I followed the instructions which were pretty simple. But now I get the following message when I try to run:
The Info.plist for application at /Users/sarokhatchatourian/Documents/Books_nd_Movies_Seen/build/Debug-iphoneos/Books_nd_Movies_Seen.app specifies a minimum OS version of 4.3, which is too high to be installed on Hailiey’s iPod
Is there some software that I can download or what do I need to do to this ipod? Is this ipod too old? do I need to update the OS of the ipod? I am new to this. Not a mac guy but trying to get there.
Thanks
Saro
The Info.plist for application at
/Users/sarokhatchatourian/Documents/Books_nd_Movies_Seen/build/Debug-iphoneos/Books_nd_Movies_Seen.app
specifies a minimum OS version of 4.3,
which is too high to be installed on
Hailiey’s iPod
This is your answer. Change the deployment target of the app to an older iOS version or update the ipod to 4.3 or later.

Resources