You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to follow the guide to build web3swift by my self with my local source.
But I couldn't get a valid framework file to apply to my project.
Here is my steps.
I made a clone the branch named "develop" in my local storage because I need the commit which updates the version of libraries for xcode 12.5(Update Cartfile and Pods dependencies #330).
It seems that the commit has not been merged into the official branch.
I executed following commands in the source location.
I opened web3swift.xcworkspace and run Build by Cmd+B.
That was all from the guide, "Build from source" and I have no idea how to apply my build output.
So I tried following steps to create web3swift.xcframework.
I got a web3swift.xcframework so I put this into my project by adding it in Frameworks and Libraries.
And when I try to import "web3swift" it says "Failed to build module 'web3swift' from its module interface; it may have been damaged or it may have triggered a bug in the Swift compiler when it was produced".
It seems that I did wrong during creating framework output because I cannot import other related libraries too such as BigInt and CryptoSwift.
Can anyone give me a little help to create a right library from source?
I solved the problem.
I added --no-skip-current parameter to build command and now I got web3swift.framework.
"% ./carthage-build.sh build --platform iOS --no-skip-current"
So I copied and added Carthage/Build/iOS/*.framework files into my project.
Now I got another problem importing web3swiflt regarding BigInt.BigUInt - 'BigUInt' is not a member type of struct 'BigInt.BigInt' in x86_64-apple-ios-simulator.swiftinterface.
I solved another problem.
I added --use-xcframwork in the command, carthage-build.sh build % ./carthage-build.sh build --platform iOS --no-skip-current --use-xcframwork
Finally I can import web3swift without any error.
hello,
I tried to follow the guide to build web3swift by my self with my local source.
But I couldn't get a valid framework file to apply to my project.
Here is my steps.
I made a clone the branch named "develop" in my local storage because I need the commit which updates the version of libraries for xcode 12.5(Update Cartfile and Pods dependencies #330).
It seems that the commit has not been merged into the official branch.
I executed following commands in the source location.
I opened web3swift.xcworkspace and run Build by Cmd+B.
That was all from the guide, "Build from source" and I have no idea how to apply my build output.
So I tried following steps to create web3swift.xcframework.
I got a web3swift.xcframework so I put this into my project by adding it in Frameworks and Libraries.
And when I try to import "web3swift" it says "Failed to build module 'web3swift' from its module interface; it may have been damaged or it may have triggered a bug in the Swift compiler when it was produced".
It seems that I did wrong during creating framework output because I cannot import other related libraries too such as BigInt and CryptoSwift.
Can anyone give me a little help to create a right library from source?
Here is my environment.
The text was updated successfully, but these errors were encountered: