Re: Deployment target problem with Xcode 7
Re: Deployment target problem with Xcode 7
- Subject: Re: Deployment target problem with Xcode 7
- From: Jonathan Mitchell <email@hidden>
- Date: Tue, 10 Nov 2015 09:23:38 +0000
- X_v_e_cd: 8a98a829491bb402c58af5ced9440a44
- X_v_r_cd: 529a1fd17480fbc309c367c7c77ccae7
> On 10 Nov 2015, at 08:20, sqwarqDev <email@hidden> wrote:
>
>
>> On Nov 9, 2015, at 20:26 , Lorenzo Thurman <email@hidden> wrote:
>>>
>>> Are there issues with Xcode 7 and deployment targets?
>>
>
> I posted a similar story last week in Cocoa-Dev (see: "debugging AutoLayout exception with no build errors” ). All told, I spent over two weeks trying to determine why Xcode 7 thought my app was just fine & dandy but 10.9 thought the few minor changes I’d made now constituted a smorgasbord of AutoLayout errors and threw exceptions in protest.
>
> In the end, I had to resort to zipping the project from 10.11 and building it in XCode 6 on 10.9 to see what the errors were.
You might have some success copying the 10.9 SDK into the Xcode 7 SDK folder.
>
> The takeaway for me from this experience was to do the exact opposite of Apple’s advice of always using the latest SDK and setting your deployment target to the lowest supported OS. I can’t take Apple’s advice seriously when Xcode is so poor at warning about possible errors within the range of specified deployment targets.
That may be Apple’s advice but relinking to a newer SDK in my experience always raises issues.
The base SDK linkage information is embedded in the build and is used to influence behaviour at runtime.
So an app linked on 10.9 when run on 10.11 will retain some 10.9 behaviours for some documented features.
So this is not really an Xcode issue, it is a code versioning issue.
My own app was designed and developed on 10.9.
The same code shows lots of foibles when linked against 10.11.
If I want to get rid of them I am going to have to put effort into resolving the source of each problem.
For instance, the auto insertion of NSViewController into the responder chain totally trashed my responder chain design.
Linking against the older SDK is okay - it just restricts your ability to use newer API.
Linking against the most recent SDK is probably desirable but it likely won’t come without a cost for moderately complex apps.
J
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden