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

Fix Redefinition of module error in Xcode ≧ 8.3 #465

Closed
wants to merge 11 commits into from

Conversation

vkedwardli
Copy link

Renamed module.modulemap to Starscream.modulemap to avoid Xcode bug, according to Xcode 8.3 release notes:

When building a framework that has module maps in both the source and the install directories that define the same module, the compiler will show a redefinition message. (28638816)
Workaround: Rename the module map file in the source directory to a non-default name (the default name is module.modulemap or module.map), and set the Module Map File build setting to the renamed module map.

Reference:
ResearchKit/ResearchKit#922
grpc/grpc#10355

Should can fix the error mentioned by @rhishikeshj in #361 (comment)

p.s. I'm still facing it in Xcode 9, reproducible with multiple projects in different folder having Starscream as the same dependency

@vkedwardli
Copy link
Author

Seems there is no easy way to fix this since the SDK itself is using module.modulemap and will trigger the same Xcode bug if I try to target all macOS/iOS/tvOS/watchOS platforms

a

May be it is not possible to support both local project + Cocoapods at this moment

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

Successfully merging this pull request may close these issues.

1 participant