iOS Build Environment Help Center

Build error

append delete Michele

• Windows version: 11
• Builder version: 3.70.3 (iOS Project builder for Unity)
• iOS SDK version: 18.2

When I start the build I get the following:

+ Checking for symlinks in source tree...
error: lstat('./builder/lib/swift/appletvos') failed (errno 2: No such file or directory)
Premere un tasto per continuare . . .

The build on xCode works fine.
The error seems to indicate that the builder is looking for the tvOS SDK which is not effectively present, but my application is only for iPad (no iPhone).

The file "iOS Project Builder for Unity\lib\swift\appletvos" points to "SDK\extra\appleTVOS" that does not exist. The "extra" folder contains only "apinotes" and "iphoneos".

Thank you for help.

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Hello @Michele

I'm not sure what problem you've run into. Would you mind sharing your iOS SDK with me so that I can take a look ? Send me the zip file created by the Migration Assistant, not one that you create yourself, so that the symlinks are preserved.

append delete #2. Michele

Hello!

I emailed you the SDK.

Thanks for your help.

append delete #3. Pierre-Marie Baty

Hello Michele

Sorry for the delay of my reply. I looked at your SDK and unless I overlooked something I didn't see any problem. The "broken" symlinks are here so that they point to a valid place given the installed SDK.

But, after staring at your error message long enough, I came under the impression that you installed the builder in a *subdirectory* of your Xcode project. Am I right, is it the case ? If so, then please install it elsewhere, because when the build script will look for symlinks to convert in the Xcode project tree, it'll also find the ones in the builder tree, which are already set and, for some, correctly (!) point to nowhere.

append delete #4. Michele

Hello,

Thank you for your response. To clarify, the builder is installed in the default folder, which is: "%USERPROFILE%\iOS Project Builder for Unity".

Within the folder "%USERPROFILE%\iOS Project Builder for Unity\lib\swift\", there is a link named "appletvos" that points to: "C:\Users\[myAccountName]\iOS Project Builder for Unity\SDK\extra\appletvos".

However, this folder does not exist in the SDK. This link is the one causing the error. In fact, the mentioned "extra" folder inside "SDK" folder only contains two subfolders: "apinotes" and "iphoneos", but no "appletvos" folder.

I hope this explanation helps to identify the issue. Let me know if you need further details.

Best regards,
Michele

append delete #5. Pierre-Marie Baty

Yes, and this is correct. The symlinks in "%USERPROFILE%\iOS Project Builder for Unity\lib\swift\" *correctly* point to subfolders in the SDK that may or may not exist, depending on which SDK is installed.

So it looks like your project requires this folder to point to a valid path. Considering that, on a Mac, all the SDKs are installed with Xcode (iOS, tvOS, etc) and that your project builds on a Mac, is there a chance that you have, by mistake, included in your iOS project some TVOS-specific code (for example through a plugin or asset) ?

If it's not the case, I'll need to have a closer look at the Xcode project itself to diagnose further.

append delete #6. Michele

I've conducted some tests, and it seems the issue is associated with the official Unity packages "AR Foundation" and "Apple ARKit XR Plugin."

Here's what I found:
- I created an empty project with Unity 2022.3.55, and it compiled without any errors.
- However, when I installed the above-mentioned packages and added their components to the scene, the error I mentioned earlier reappeared.

I will send you an archive of the project I used for testing via email so you can investigate further.

I hope this information helps. Looking forward to your guidance.

Thank you.

append delete #7. Michele

Hello Pierre-Marie.

Further investigation seems to confirm that iOS Project Builder for Unity does not compile Unity projects that use the "AR Foundation" and "Apple ARKit XR Plugin" packages.

Did you try the project I sent you? Did you find a solution?

Fixing this issue would be really important for those who build AR projects with Unity and rely on iOS Project Builder.

Thanks for your help.

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