You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue with the latest versions of the iPhoneOS, where when I link towards the AVFoundation framework, I always also get linkage towards the AVFAudio framework, regardless of which minnimum iPhoneOS version I specify.
Since the AVFAudio framework 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-darwin19 and 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:
clang -target arm64-apple-ios10.0 -framework AVFoundation -o ./testapp
otool -L ./testapp | grep AVF
/System/Library/Frameworks/AVFoundation.framework/AVFoundation (compatibility version 1.0.0, current version 2.0.0)
(when using verbose, the 14.3 build passes this to the apple linker: -platform_version ios 10.0.0 14.5)
versus
clang -target arm64-apple-ios14.5 -framework AVFoundation -o ./testapp
otool -L ./testapp | grep AVF
/System/Library/Frameworks/AVFoundation.framework/AVFoundation (compatibility version 1.0.0, current version 2.0.0)
/System/Library/Frameworks/AVFAudio.framework/AVFAudio (compatibility version 1.0.0, current version 1.0.0)
(when using verbose, the 14.3 build passes this to the apple linker: -platform_version ios 14.5.0 14.5)
Comparing the AVFoundation.tbd between versions reveals this bit, which is a clue.
Also, the `AVFAudio.tbd doesn't exist in 14.3)
Hi!
I have an issue with the latest versions of the iPhoneOS, where when I link towards the
AVFoundation
framework, I always also get linkage towards theAVFAudio
framework, regardless of which minnimum iPhoneOS version I specify.Since the
AVFAudio
framework 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-darwin19
and 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.tbd
between 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)
The text was updated successfully, but these errors were encountered: