gurhub / surmagic

🚀 Command Line Tool to create XCFramework for multiple platforms in one shot!
MIT License
310 stars 43 forks source link

Fixed xcframework not generated #19

Open FFirX opened 1 year ago

FFirX commented 1 year ago

File xcframework not generated due to no swiftinterface files generated (May be the reason for #15 ), fixed it by adding "BUILD_LIBRARY_FOR_DISTRIBUTION=YES" to xcodebuild arguments.

ENV

 --------------------------- 

1.2.7

 --------------------------- 

Xcode 14.2
Build version 14C18

 --------------------------- 

ProductName:        macOS
ProductVersion:     13.1
BuildVersion:       22C65

 --------------------------- 

Details

xcodebuild output error: No 'swiftinterface' files found within '/Users/xxx/Documents/Repos/iOS/SnapKit/SMoutput/iOS.xcarchive/Products/Library/Frameworks/SnapKit.framework/Modules/SnapKit.swiftmodule'. but surmagic still says: Successfully created a XCFramework on the location: ./xxxx in fact, the output folder only contains a Info.plist file.

Adding "BUILD_LIBRARY_FOR_DISTRIBUTION=YES" to xcodebuild arguments to make it generate swiftinterface files, this will solve the issue.

gurhub commented 1 year ago

Hey @FFirX,

I'm super grateful for your contribution! I've already reviewed the code line by line by eye, I'll check everything else on my main machine when I'll have time this weekend I hope.

I really appreciated it.

PM me if you have any intention regarding the long-term contribution, please.

Best