How to specify mininum iOS version for linker? #109
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi!
I have an issue with the latest versions of the iPhoneOS, where when I link towards the
AVFoundationframework, I always also get linkage towards theAVFAudioframework, regardless of which minnimum iPhoneOS version I specify.Since the
AVFAudioframework is new since iPhoneOS 14.5, it won't work with older devices.The apple linker checks the min iPhoneOS version and links accordingly. (See example below)
So my questions are, how do I build/configure cctools-port to do this, and what should I pass into the linker?
Any tips/hints are much appreciated!
Regards,
Mathias
Currently, I build cctools with prefix
arm-apple-darwin19and latest libtapi, and I link with:(I removed the libraries/frameworks for brevity)
Comparing with Apple clang, it's easy to switch between min iPhoneOS versions:
(when using verbose, the 14.3 build passes this to the apple linker:
-platform_version ios 10.0.0 14.5)versus
(when using verbose, the 14.3 build passes this to the apple linker:
-platform_version ios 14.5.0 14.5)Comparing the
AVFoundation.tbdbetween versions reveals this bit, which is a clue.Also, the `AVFAudio.tbd doesn't exist in 14.3)
AVFoundation.tbd (iPhoneOS 14.3)
AVFoundation.tbd (iPhoneOS 14.5)