Reputation: 2154
The problem is as the title.
Here is the reproduce steps:
Here is the sample project with commits showing these steps https://github.com/allenlinli/BUILD_LIBRARY_FOR_DISTRIBUTION-Bug-When-Use-Swift
Upvotes: 0
Views: 301
Reputation: 2154
Figured out that I should set only BUILD_LIBRARY_FOR_DISTRIBUTION = YES
for a framework target, not a sample app target.
Upvotes: 1