Using Xcode 12 beta 2 and beta 3 I'm getting the following linker error:
The example is when building for the simulator, but I get the same error building for an arm device as well.
I don't get this error with Xcode 11. I'm guessing there's some framework I need to import or link (SwiftWebKit, it would seem), but I'm not sure why this is an issue with Xcode 12 and not with Xcode 11. I've tried linking the WebKit.framework and import WebKit in the mentioned files, but the error remains.
This is a mixed Obj-C / Swift project, and these are not the only Swift classes in the project. I have not been able to determine what's special about these particular files compared to the others in the project.
Anyone know what the problem is here and how to fix it?
Code Block ld: warning: Could not find or use auto-linked library 'swiftWebKit' Undefined symbols for architecture x86_64: "swift_FORCE_LOAD_$_swiftWebKit", referenced from: swift_FORCE_LOAD_$_swiftWebKit_$_Apex in DurationPicker.o swift_FORCE_LOAD_$_swiftWebKit_$_Apex in AlertRule.o swift_FORCE_LOAD_$_swiftWebKit_$_Apex in VideoExportCamerasTableViewHandler.o swift_FORCE_LOAD_$_swiftWebKit_$_Apex in CameraListCollectionViewCell.o swift_FORCE_LOAD_$_swiftWebKit_$_Apex in RecorderConnector.o swift_FORCE_LOAD_$_swiftWebKit_$_Apex in CameraListThumbnailCell.o swift_FORCE_LOAD_$_swiftWebKit_$_Apex in VideoExportDetailsViewController.o ... (maybe you meant: __swift_FORCE_LOAD_$_swiftWebKit_$_Apex) ld: symbol(s) not found for architecture x86_64
The example is when building for the simulator, but I get the same error building for an arm device as well.
I don't get this error with Xcode 11. I'm guessing there's some framework I need to import or link (SwiftWebKit, it would seem), but I'm not sure why this is an issue with Xcode 12 and not with Xcode 11. I've tried linking the WebKit.framework and import WebKit in the mentioned files, but the error remains.
This is a mixed Obj-C / Swift project, and these are not the only Swift classes in the project. I have not been able to determine what's special about these particular files compared to the others in the project.
Anyone know what the problem is here and how to fix it?
Figured this out. There is a new library in Xcode 12 that needs to be added to the Link Binary with Libraries phase call libSwiftWebKit.tbd. Error went away after adding this.
Unfortunately, adding this library breaks compilation with Xcode 11, so you'll have to add & remove it depending on which version of Xcode you're using.
👎
Unfortunately, adding this library breaks compilation with Xcode 11, so you'll have to add & remove it depending on which version of Xcode you're using.
👎