> On 10 Nov 2015, at 08:20, sqwarqDev <[email protected]> wrote:
> 
> 
>> On Nov 9, 2015, at 20:26 , Lorenzo Thurman <[email protected]> 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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to