Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build XCFramework #252

Open
quanghoang0101 opened this issue Dec 15, 2024 · 0 comments
Open

Failed to build XCFramework #252

quanghoang0101 opened this issue Dec 15, 2024 · 0 comments

Comments

@quanghoang0101
Copy link

I used xcodebuild to build xcframework.
xcodebuild archive \ -scheme MyScheme \ -destination "generic/platform=iOS Simulator" \ -sdk iphonesimulator \ -archivePath ./build/ios.xcarchive archive \ SKIP_INSTALL=NO \ BUILD_LIBRARY_FOR_DISTRIBUTION=YES

The error at file:

Injections.swift:357:95: error: 'ObservableObject' aliases 'Combine.ObservableObject' and cannot be used here because 'Combine' was not imported by this file
@MainActor @frozen @propertyWrapper public struct InjectedObject<T>: DynamicProperty where T: ObservableObject {

But when I set BUILD_LIBRARY_FOR_DISTRIBUTION=NO, it works fine. Please help to take a look at the issue or any suggestion. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant