iOS Build Environment Help Center

Error linking UnityFramework

append delete brian

• Windows version: 10
• Builder version: 3.70.3
• iOS SDK version: 17.5

Building app with UnityAds and getting a Linker error. SafariServices and WebKit folders are empty in SDK\System\Library\Frameworks, while others have Modules and Headers folders. I'm assuming that's the problem?

I added -F"C:/iOS/builder" -framework UnityAds manually.

https://pmbaty.com/paste/?4618bc22efe9d67a#6WEJ1BvqsdrQPCrDbcqCEFN5QQYuUeSFPFcjwQqj7GnV

Reply RSS

Replies

append delete #1. brian

NOTE: I tried checking "Try to fix unresolved symbols automatically" in builder. Pretty much the same results.

https://pmbaty.com/paste/?d2c00eadffc2b43f#FaVVaypRJJJ1f3X7kUs55eEpgJ1CNh2xwvnubRHqw96R

append delete #2. Pierre-Marie Baty

Hello

You guessed right, the root cause is here:

%
ld64.lld: error: framework not found for -framework WebKit
ld64.lld: error: framework not found for -framework SafariServices
%

These folders should not be empty. When the iOS SDK is correctly deployed, these folders are symbolic links (or NTFS junctions) to SDK\System\Cryptexes\OS\System\Library\Frameworks\WebKit.framework and SDK\System\Cryptexes\OS\System\Library\Frameworks\SafariServices.framework respectively.

This suggest the iOS SDK deployment procedure didn't complete successfully, or another error. In recent versions of the builder, it is assumed that the iOS SDK is being deployed on a NTFS filesystem, so that UNIX symbolic links are converted to NTFS junctions. If you installed your iOS SDK on e.g. a network drive, this might not work.

I hope this helps

append delete #3. brian

Thank you Pierre-Marie, that was it!

Resolution:
Performed a fresh migration from Mac to PC. The PC step showed "Converting Symbolic Links for NTSB" or something similar. Now the WebKit and SafariServices frameworks have links to the Cryptexes folder stated in previous reply.

append delete #4. Pierre-Marie Baty

One possible cause of this is when you use an outdated Migration Assistant script to migrate your SDK. Always use the scripts that come with the version of the builder you're using.

Happy building :-)

append delete #5. brian

A quick update, Apple approved the app!

I thought I did use the latest migration script, but it's possible I didn't the first time.

Thanks again Pierre-Marie

append delete #6. Pierre-Marie Baty

You're welcome :-)

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Moderators: Pierre-Marie Baty