iOS Build Environment Help Center

Linking UnityFramework... ld64.lld: error: framework not found for -framework CoreAudioTypes

append delete Adit

Windows 11 Home 22H2
Builder 3.60.2
iOS SDK 17.2
Error log: https://pmbaty.com/paste/?1123df103f9f85f5#FM3LBmDe3WxKpt2cxLKxYyQZqE2NT1xKT4jNgr6pw1Fk

Hello. Hope you're doing well.

I encountered this error while trying to build an AR app that uses ARFoundation. When I built it from my friends' Macbook, there was no error then. But when I built it using this iOS builder, it gave my library not found error (CoreAudioTypes). I found library not found error threads on this forum but not one for CoreAudioTypes so I was hoping you could help.

Thank you.

:: @Adit added on 08 Feb ’24 · 13:37

Sorry for the deleted replies but I fixed the above error by re-migrating the SDK.zip. But now there's a new error: Symbols not found for architecture arm64

Error log: https://pmbaty.com/paste/?d32766f3f2cba4fe#5Qv4USKuDbEpfykfYprSKwGcT1NVhcaDg9rLkJ7wBK9e

:: @Adit added on 08 Feb ’24 · 15:09

Turns out, it wasn't the remigration of SDK.zip that fixed it. The error is still the same, it's just that I had checked the "Try to fix unresolved symbols automatically" checkbox. This was there in that error:

ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes'

Reply RSS

Replies

#1. Adit

This post was deleted by its owner

#2. Adit

This post was deleted by its owner

append delete #3. Pierre-Marie Baty

Hello

You are confusing errors and warnings. What you consider an error is a warning that can be ignored; your error is in fact the whole block of missing symbols under "Undefined symbols for architecture arm64:", that sum up in "ld: 343 symbol(s) not found for architecture arm64".

All these missing symbols are, in technical terms, "Objective-C msgSend stub prototypes". This is a known issue when using the Apple linker of versions < 3.61. Please use the LLVM linker to link them. Try again with the LLVM linker and let us know what happens this time.

I'll post version 3.61 of the builder tomorrow which should bring support for these stub prototypes in the Apple linker. It's just that testing requires ever more time than I suppose it will...

append delete #4. Adit

Sorry for the misunderstanding. The error log that I shared first is the one in which I have used LLVM linker.

Use the LLVM linker (faster) => error log: https://pmbaty.com/paste/?1123df103f9f85f5#FM3LBmDe3WxKpt2cxLKxYyQZqE2NT1xKT4jNgr6pw1Fk
(I tried normally and by adding extra framework: -framework CoreAudioTypes)

Try to fix unresolved symbols automatically (slower) => error log: https://pmbaty.com/paste/?d32766f3f2cba4fe#5Qv4USKuDbEpfykfYprSKwGcT1NVhcaDg9rLkJ7wBK9e

Only changes I've made to default settings are checking off "Deploy to iOS device over the air"

I upgraded to 3.61 and the same errors are there.

append delete #5. Pierre-Marie Baty

Hmm... it looks like it's an issue related with the iOS SDK you're using, as other people using Xcode experience the exact same issue as you, look:

https://forums.developer.apple.com/forums/thread/739216

https://github.com/stripe/stripe-react-native/issues/1532

It can't guarantee 100% it's Apple's fault, but it wouldn't be the first time Apple would let out an SDK with missing pieces, actually...

Anyway. You said you have a friend with a Macbook and your project builds on his machine. It would be interesting to know which iOS SDK he uses during the build. You could maybe try again with the same iOS SDK as him, and I suppose the problem would go away. Let us know if you can do that.

append delete #6. Adit

Wouldn't our iOS SDK be the same? Since I ran the migration assistant .command file on his macbook.
Also, he ran the command and sent the zip files to me via google drive. You mentioned using a USB key. Could that have corrupted any files?

append delete #7. Pierre-Marie Baty

Oh, I was missing the info that you're using the same SDK.

I see in the System/Library/Frameworks directory of the iOS 17.2 SDK that the CoreAudioTypes.framework directory is here, but the TBD (text binary description) file there is missing. I'm wondering how Xcode can link against a framework for which it has no specification.

What's the updated error log when you use the Apple linker (*not* the LLVM one) with the version 3.61 that I released today ?

append delete #8. Adit

It worked! Thank you so much. However, I'm still having trouble transferring the .ipa file to my iPad (iPad OS 17.1). When I install it using iTunes or diawi, the app appears on my home screen but when I click it, an "Unable to install app" error is displayed (Device UUID is already there in the provisioning profile, I checked). Do you happen to know any updated way to perform this transfer?

append delete #9. Pierre-Marie Baty

Glad to hear it ! That's typical of either a code signing problem, or a missing entitlement (most probably the latter).

Please check the device system logs (debug console + USB cable) and/or thoroughly review your code signing / provisioning / app entitlements steps, simply follow the documentation for that (troubleshooting steps).

#10. Adit

This post was deleted by its owner

append delete #11. Adit

I used the remote debug console and I filtered them as per the bundle ID as you mentioned in the docs and here is what I got:
https://pmbaty.com/paste/?84f35cbdba9243db#8DZe9iqJ2TNHwFemsQhrDsFsrVwi7ZDrkEwZkDmyqCMV

I have absolutely no idea how to read this but these are a few things that stood out:

=> Feb 10 03:38:52.854 Rajans-iPad nehelper[118]<Notice>: Did not find an app with bundle ID com.HashtagVoid.OnlineShoppAR, cannot add app rules from app mapping: Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" UserInfo={_LSLine=1608, _LSFunction=runEvaluator}

=> Usage of "Unknown Persona" => com.HashtagVoid.OnlineShoppAR/Unknown Persona:1:3:1:1:Create coordinator

=> Feb 10 03:39:02.453 Rajans-iPad installcoordinationd[266]<Notice>: -[IXSDataPromise cancelForReason:client:error:]: <IXSPlaceholder(0x70ec12d70) Name:App Placeholder: OnlineShoppAR (com.HashtagVoid.OnlineShoppAR) Creator:AirTraffic UUID:9A45717D-DA4C-4CBA-B120-FFF1C6DF1695> : canceled by client 17 for reason Error Domain=IXUserPresentableErrorDomain Code=1 "This app could not be installed at this time." UserInfo={NSUnderlyingError=0x70e80fad0 {Error Domain=MIInstallerErrorDomain Code=111 "The bundle being installed with bundle ID com.HashtagVoid.OnlineShoppAR is authorized by a free provisioning profile, but apps validated by those are not allowed to be installed from this source." UserInfo={LegacyErrorString=ApplicationVerificationFailed, FunctionName=-[MIInstallableBundle _validateBundle:validatingResources:performingOnlineAuthorization:checkingTrustCacheIfApplicable:allowingFreeProfileValidation:skippingProfileIDValidation:error:], SourceFileLine=945, NSLocalizedDescription=The bundle being installed with bundle ID com.HashtagVoid.OnlineShoppAR is authorized by a free provisio

It seems that it's either the bundle ID or the fact that I am using a free provisioning profile by XCode right? Can you please me figure this out?

Bundle ID in Unity: com.HashtagVoid.OnlineShoppAR
AppID in iOS Builder -> Provisioning Profile -> Details: (8893C5XQAW.com.HashtagVoid.OnlineShoppAR)

Should I add this string in the bundle ID in Unity? Although, everything worked fine when I built it on XCode on my friend's macbook.

append delete #12. Pierre-Marie Baty

The bundle being installed with bundle ID com.HashtagVoid.OnlineShoppAR is authorized by a free provisioning profile, but apps validated by those are not allowed to be installed from this source.

That’s it. You cannot deploy apps over WiFi when you use a free provisioning profile. You must either use a normal (paid) profile from the Apple Developer Program, or install your app over USB by side loading it in iTunes.

I highly recommend the first option. These so-called free profiles are very impractical.

append delete #13. Adit

If nothing else works, I will use the paid profile but I only need to show the app to my professor and take a screen recording. So, it doesn't make sense paying. Sorry for the confusion but I HAVE installed it using iTunes and not over WiFi. Result still the same. "Unable to install app" with no icon on iPad and "The bundle being installed with bundle ID com.HashtagVoid.OnlineShoppAR is authorized by a free provisioning profile, but apps validated by those are not allowed to be installed from this source" error on the debug console."

append delete #14. Pierre-Marie Baty

Sorry, my fault, I misread. So if you did install with iTunes then I’m out of ideas. Perhaps Apple changed something recently and I need to find out what it is. The message is explicit : your free profile prevents your app from being installed this way. Anyway if Apple just changed this I should begin to see other complaints about the same issue appearing on this forum so I’ll keep an eye on that.

append delete #15. Adit

I feel like I've tried all settings by now, to no avail. Still the same error:

The bundle being installed with bundle ID com.HashtagVoid.OnlineShoppAR is authorized by a free provisioning profile, but apps validated by those are not allowed to be installed from this source

Seems like people have had trouble using the free provisioning profile before as well:

https://www.pmbaty.com/iosbuildenv/help/thread.php?path=Problem%20solving/&file=the-app-does-not-complete-installing

The fact that it worked fine when I tried it on XCode a few days back has really confused me. It means that the provisioning profile is valid and can be used to install apps on iPad but maybe, Apple has some way to figure out if you're installing free apps via XCode or not and it blocks installs if they are from iTunes. Is that something you could look into in a future version?

I'll try redoing the migration step again in a few days. If that doesn't work, I'll just buy the developer account and hopefully, that works. Thanks for helping!

append delete #16. Pierre-Marie Baty

maybe, Apple has some way to figure out if you're installing free apps via XCode or not and it blocks installs if they are from iTunes. Is that something you could look into in a future version?

Definitely this will go on my todo list near the top. But although I’d love spending all the time this toolchain deserves really on it, I’m trapped with paid contracts that give me little free time and it’s hard to keep up. Sorry for not being able to provide an immediate fix.

Libimobiledevice has tools to install iOS apps over USB. I’d be very interested in your feedback if you manage to install your app using these tools. Do notify me then please.

Alternatively, I’m convinced the paid profile will work.

append delete #17. BadToxic

Just for the record: I also had the CoreAudioTypes problem and it was fixed by removing the LLVM checkmark.

append delete #18. Pierre-Marie Baty

Thanks for the info. It suggests that I need to better align the LLVM linker with the Apple one.

append delete #19. Wolphy

Just to add to this thread that I was experiencing the same issue, also solved by un-ticking the LLVM linker

append delete #20. Pierre-Marie Baty

Provided I did things right, this will be fixed in the next release.

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