Open manikal opened 1 year ago
It seems like it's because framework and type names are the same (OpenAISwift.OpenAISwift), renaming either would resolve it.
Hey, @manikal can you share which version of Xcode you're using?
Hi @adamrushy,
I'm using 14.3.1.
I am not able to reproduce here @manikal, are you able to share the project? My thinking is that have you got some local class that is named the same?
Hi @adamrushy , I was quite unclear when I said "to archive" in my initial post. I was thinking about archiving from the script to make .xcframework for example.
I've created project for you demonstrating this. The project has aggregated target which has Run Script phase with script in it. The script just archives the current framework. So when you open up the project just select this aggregated target called Script run and wait until it fails with errors I've mentioned.
I still believe it's related to the fact that the framework and type names are the same.
Thanks! openAISwiftIssue.zip
Hi,
I've integrated OpenAISwift with SPM to my framework but when I try to archive my framework I get bunch of errors saying that "'ChatRole' is not a member type of class 'OpenAISwift.OpenAISwift'" for all OpenAISwift types (ChatError, Payload...). If I do manual integration using source code it archives fine.