Skip to content

Fixed xcframework not generated#19

Open
FFirX wants to merge 8 commits intogurhub:masterfrom
FFirX:master
Open

Fixed xcframework not generated#19
FFirX wants to merge 8 commits intogurhub:masterfrom
FFirX:master

Conversation

@FFirX
Copy link

@FFirX FFirX commented Dec 28, 2022

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
Copy link
Owner

gurhub commented Dec 29, 2022

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

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.

2 participants