Post

Replies

Boosts

Views

Activity

Symbol not found: _$s10Foundation10URLRequestV10httpMethodSSSgvg
Hi, After adding a WidgetExtension (to add a lock screen widget) to my app, I've discovered that when running my app on a device <iOS16, I crash with a Symbol not found error in... Foundation. dyld[99805]: Symbol not found: _$s10Foundation10URLRequestV10httpMethodSSSgvg Referenced from: /Users/thibauddavid/Library/Developer/Xcode/DerivedData/MyAppName-aesniykwuojsmyblczcqnpuiuuzk/Build/Products/DebugDevelopment-iphonesimulator/WidgetsExtensionEngine.framework/WidgetsExtensionEngine Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation Symbol not found: _$s10Foundation10URLRequestV10httpMethodSSSgvg Referenced from: /Users/thibauddavid/Library/Developer/Xcode/DerivedData/MyAppName-aesniykwuojsmyblczcqnpuiuuzk/Build/Products/DebugDevelopment-iphonesimulator/WidgetsExtensionEngine.framework/WidgetsExtensionEngine Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation How is that even possible ? I've double checked my widget mintarget version (iOS16), and that all my targets are using the same Swift version (5). What else can I check ? When I encounter a similar error, it's always because a framework isn't embedded in host target, but there is no way Foundation could be missing. My widget extension is the only extension triggering this issue (NSE, Share etc works fine). I suspect it's because my WidgetExtension target has a min target version of iOS16, but it shouldn't event be embedded nor run in iOS15 devices. Am I missing something ? Any help appreciated
6
1
4.1k
Oct ’22