Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building for iOS simulator yields linker warnings and errors #28

Open
dapetcu21 opened this issue Jan 11, 2021 · 3 comments
Open

Building for iOS simulator yields linker warnings and errors #28

dapetcu21 opened this issue Jan 11, 2021 · 3 comments

Comments

@dapetcu21
Copy link
Contributor

ld: warning: building for iOS Simulator, but linking in .tbd file (/opt/platformsdk/iPhoneSimulator14.0.sdk//usr/lib/system/libsystem_kernel.tbd) built for macOS
ld: warning: building for iOS Simulator, but linking in .tbd file (/opt/platformsdk/iPhoneSimulator14.0.sdk//usr/lib/system/libsystem_platform.tbd) built for macOS
ld: warning: building for iOS Simulator, but linking in .tbd file (/opt/platformsdk/iPhoneSimulator14.0.sdk//usr/lib/system/libsystem_pthread.tbd) built for macOS
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_WKWebView", referenced from:
      objc-class-ref in libWebViewExternal_1.a(webview_darwin.mm_2.o)
  "_OBJC_CLASS_$_WKWebViewConfiguration", referenced from:
      objc-class-ref in libWebViewExternal_1.a(webview_darwin.mm_2.o)

The linker error I fixed by adding the WebKit framework to the extension manifest for x86_64-ios, but the warnings are still there. Not sure if they have any impact.

@dapetcu21
Copy link
Contributor Author

It doesn't run in iOS sim. Crashes on app boot. Only logs I get are:

Jan 11 12:54:27 figaro WebView[38015]: assertion failed: 20C69 18C61: libxpc.dylib + 50260 [056A9371-1C2C-385B-BB06-F099DE20E73A]: 0x7d
Jan 11 12:54:27 figaro com.apple.CoreSimulator.SimDevice.CC68B9E0-DD07-4472-8198-C59C6840EFB5[36652] (UIKitApplication:com.defoldtest.webview[e83d][rb-legacy][38015]): Service exited with abnormal code: 1

@britzl
Copy link
Contributor

britzl commented Jan 12, 2021

Hmm, yeah, I believe we have some unresolved problems with iOS simulator builds in general. Right @JCash ?

@JCash
Copy link
Contributor

JCash commented Jan 12, 2021

I think the simulator pipeline needs some love yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants