-
Notifications
You must be signed in to change notification settings - Fork 6
Issues building for ios #20
Comments
@jakubkoci any insight? Thank you!! 🙂 |
Unfortunately, I have the same problem. You need to manually link the @gnarula Have you solved this? Could you please help us and describe how to do it correctly? |
uhm, it works here after I add |
Thank you @gnarula I was having the same issue and that was very helpful! I missed adding rn-indy-sdk as the target. I now get an error saying that my Indy.framework is compiled with an older version of swift. Im wondering if you or @jakubkoci I see the Readme says to "Beware that the library needs to be compiled with the same version of Swift as your project" but i'm having trouble figuring out how to do that. |
@lhaber9 You could install Xcode Toolchain version with the required version of Swfit. Here you can find toolchains for various versions of Swift: https://swift.org/download/#releases |
@gnarula @jakubkoci @lhaber9 Can someone help me with the same problem? I build the Indy.framework for swift 5, but adding it to my code project I got this error: |
Finally resolved uninstalling and reinstalling the npm module and link the Indy.framework again |
@riccardocaranfil Awesome! it sounds like you were able to successfully build the Indy.framework for swift 5. I haven't been able to do that yet. If you could list some steps for how you did that build it would be very helpful. Thank you! |
@lhaber9 Yes after hours of attempts I finally got it 🤣 I just did this:
If you need help, I will upload my Indy project in a new repo. Hope it is helpful |
@riccardocaranfil I still get stuck on the archive step. Would you be willing share the |
@TimoGlastra I uploaded my project with the already build file Available here -> https://github.com/riccardocaranfil/libindy-pod |
@riccardocaranfil could you please share an updated version of framework included Apple processor updates? I'm using: Xcode 12.3, Swift 5. Terminal output on
|
@eli7ah I recently made a new build with xcode 12.3 and swift 5, maybe that would work for you? See https://github.com/animo/aries-mobile-agent-react-native/tree/develop/ios/Pods/Frameworks If not, I can rebuild with the required modifications |
@TimoGlastra After several manipulations (etc. disabling bitcode in main target, but not sure yet if this meets the requirements of my project) I finally builded the project with Indy and can use it with Swift! I'll check everything and contact you if smth goes wrong. Great thanx! |
@TimoGlastra im still having some trouble getting this working. I see you made a build above for xcode 12.3 and swift 5, any chance you could make one for 12.4 and swift 5.3.2? I have been trying unsuccessfully to do that. Thank you! |
@lhaber9 the build you linked to should work with newer versions of Swift / XCode. Please see my comment here: I think you need to enable the setting from the article (If you're not using the app you linked to) for your project. |
But I haven't tried with the specific Swift / Xcode versions you mentioned, so could be that it doesn't work for this combination |
@TimoGlastra When i try to build using the Indy.Framwork file you shared above i get an error message that "module compiled with Swift 5.3 cannot be imported by the Swift 5.3.2 compiler". I did see the text about turning on the "Build libraries for distribution" option but im a little unclear. My understanding is that setting would need to be turned on in the Indy project when archiving. But I have not been able to successfully build the indy project and get my own Indy.Framework, so i havent been able to use that option. Any other thoughts you have about getting a version to work with swift 5.3.2 are much appreciated. Thank you for your help! |
Hi. I have a wierd problem.
When I try to archive Indy, a wired error occurred like this. So, I tried to add ZMQ_USE_KQUEUE in pod file like below, then build succeeded. But, my framework has a problem, when I called "IndyPool.openLedger()" api, an error occurred like below.
Any other apis that do not need network connection like "IndyWallet.createWallet", "IndyDid.createAndStoreMyDid()", "IndyPool.createPoolLedgerConfig" all work well. So, I tried to changed ZMQ_USE_* option to others, but build failed. I really hope to know what I did wrong. |
I resolved my issue. It was my poor mistake. @riccardocaranfil |
Which one is correct platform.hpp file |
Hi. I had a same problem too.
So, I think if you try to compile zmq by cmake, you probably are gonna get right 'platform.hpp' file. But, I did not follow above guide, I just manually generated 'platform.hpp' file refering to this file (https://github.com/zeromq/libzmq/blob/master/builds/cmake/platform.hpp.in) I am not sure that my approach is right or not, but I ended up succeeding to archive indy.framework. Here I attach my own platform.hpp file below. |
Hi @jeremyKim |
@lhaber9, Can you please look into the issue or please help me for getting Indy to build for Swift version 5.3.2. |
@i4apple I checked my build setting and found something related to ZMQ_USE_* preprocessor. I am not sure that I manually added 'ZMQ_USE_KQUEUE' preprocessor into libzmq before. But, I think it is worthful to give it a try. |
@jeremyKim |
@jeremyKim then It works for me after again I installed pod. |
I'm closing the issue in favor of hyperledger-archives/indy-sdk-react-native#11. This repository is being archived. If you have any other issues, please report them in the new repository hyperledger/indy-sdk-react-native. |
I've added the framework and am a bit confused about the bridging header file...
A recent PR seems to have added this header file - maybe I'm missing a dependency?
The text was updated successfully, but these errors were encountered: