I meet the problem too.
I use xcode 14 and run to iphone 11.2 , and my app crashes when runs.
The crash log is "
dyld: Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib
Referenced from: /var/containers/Bundle/Application/aaaaa/bbbb.app/bbbb
Reason: image not found"
And I resloved it by set weak link to "buildsettings- Other Linker Flags", like this:-Wl,-weak-lswiftCoreGraphics -Wl,-rpath,/usr/lib/swift
Post
Replies
Boosts
Views
Activity
I meet the problem too.
I use xcode 14 and run to iphone 11.2 , and my app crashes when runs.
The crash log is "
dyld: Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib
Referenced from: /var/containers/Bundle/Application/aaaa/bbbb.app/bbbb
Reason: image not found"
It seems to a known issue with xcode 13.2 ,to view detail 13.2 release note .
And I resloved it by set weak link to "other link flag", like this:-Wl,-weak-lswiftCoreGraphics -Wl,-rpath,/usr/lib/swift
Traditional implementation:
Demo-Bridging-Header.h
#import <AppTrackingTransparency/AppTrackingTransparency.h>
Model.h
if ATTrackingManager.trackingAuthorizationStatus == .notDetermined || ATTrackingManager.trackingAuthorizationStatus == .denied { ATTrackingManager.requestTrackingAuthorization { status in .... } }
How to implement the above mentioned in SwiftUI?