It appears that CFNetwork is in a different place on 10.7 so there is a runtime link error, see below. Can this be fixed by building CBL against 10.7 SDK? Or is there another solution? (We would like to support a few users stuck with 10.7 !)
Dyld Error Message:
Library not loaded: /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
Referenced from: /Users/USER/Desktop/YoYottaID.app/Contents/MacOS/…/Frameworks//CouchbaseLiteListener.framework/Versions/A/CouchbaseLiteListener
Reason: image not found
We have a few customers who have MacPro 1,1 or 2,1 that are stuck on OS X 10.7 hence the requirement.
I’ve got an ancient MacBook Air that is also stuck on 10.7 and can replicate the startup crash.
Prior to 10.8 CFNetwork was buried inside the CoreServices.framework, I guess it wasn’t public so moving it didn’t break anything at the time.
For our app we use the latest 10.11 SDK and set the Deployment back to 10.7 works, you just have to be careful not to use any new features.
I use Deploymate which is an excellent app that analyses your Xcode project and tells you about depreciations and missing calls.
However this link does say that because of the CFNetwork location they had to go back to 10.7 SDK
To use the 10.7 SDK you’d have to go back to an old version of Xcode (5? 4?) and I suspect it wouldn’t be able to build our project.
I suggest asking about this on Apple’s xcode-users mailing list. Honestly it was news to me that CFNetwork has moved, and I have no idea how one is supposed to deal with that in a backward-compatible way.