purchases-ios icon indicating copy to clipboard operation
purchases-ios copied to clipboard

XCFramework signing error

Open XericDesign opened this issue 1 year ago • 1 comments

I have migrated from the framework to the xcframework in a macOS project. Everything was working before.

This is a 100% Cocoa project. No Swift.

After cleaning the project, during compile I get:

#import <RevenueCat/RevenueCat.h>. "'RevenueCat/RevenueCat.h' file not found"

Building a second time seems to get past this but then I get an OS-generated window saying "RevenueCat.framework" cannot be opened because the developer cannot be verified.

In my Framework search Paths, I have the parent folder where the RevenueCat.xcframework is stored in my project folder.

My project is set to automatic signing, the build phase has a Copy Files section where RevenueCat.xcframework is copied and signed on copy. In the General Build Tab, RevenueCat.xcframework is set to Embed & Sign.

The other curious thing is after building, there is a copy of the framework in my app bundle as expected but Xcode also places a copy of the framework in the same folder as my app. This is when I build for running in the debugger.

If I pull the appropriate .framework out of the .xcframework, and use it in my project, everything works as expected.

Xcode 15.4

How can I fix this?

XericDesign avatar Aug 05 '24 16:08 XericDesign

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

RCGitBot avatar Aug 05 '24 16:08 RCGitBot