dyld Symbol not found when referencing a framework

Hi.

On my current project, we have a dynamic framework called FeatureFlags.framework.

All of the sudden, we started to have the following crash when the application starts running on a simulator:

dyld[20104]: Symbol not found: _$s12FeatureFlags0aB3KeyMp
Referenced from:
.../CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CloudSubscriptionFeatures.framework/CloudSubscriptionFeatures
Expected in:
.../Debug-iphonesimulator/FeatureFlags.framework/FeatureFlags

We tried several different things to fix the issue, but the only thing that worked was changing the name of the framework, for example: FeatureFlags2.framework.

  1. Is there something else that we could try?
  2. Is this some kind of Apple private frameworks conflict? Is this expected to happen?

Also, this problem was happening only with part of the team, for some developers the app was running without the crash.

Using Xcode 13.0 running for iOS 15.

Any information can be useful here, thanks!

I have the same issue with the same symptoms - framework called FeatureFlags, crashes when starting on simulator, only happens for some of the team.

I did at one point manage to "fix" it by removing all trace of Xcode from my machine and starting from scratch, but it's come back in the last day or two.

I've just tried your solution of renaming the framework and that's done the trick, so it does sound like some sort of naming conflict with a private framework.

dyld Symbol not found when referencing a framework
 
 
Q