I am trying to get a OS X app I built using Xcode 4.4 on Mountain Lion to work on Lion as well.
Setting the OS X Deployment Target to 10.7 doesn’t help. The app still won’t run on Lion. (The app won’t open, clicking on it does nothing.)
I tried setting the base SDK to 10.7, but I get a lot of errors, because I am using NSArray and NSDictionary literals, subscripting as well as default synthesis of @propertys all over the place.
According to the Objective-C Feature Availability Index these features should work on Lion.
What could the problem be?
NSWindowdoesn’t support weak references in Lion. From the “Transitioning to ARC Release Notes”:So yes, you should use
assigninstead when compiling for Lion. (reference)