Giter VIP home page Giter VIP logo

Comments (8)

TimoGlastra avatar TimoGlastra commented on July 19, 2024

We're in the process of releasing aries framework javascript to NPM which should solve this issue.

For now you can solve this by removing the node_modules directory and the package-lock.json file.

If it still doesn't work, do the same as above, but first clear your NPM cache: npm cache clean --force

from aries-mobile-agent-react-native.

JamesKEbert avatar JamesKEbert commented on July 19, 2024

@TimoGlastra IIRC your most recent PR would potentially fix this as well?

from aries-mobile-agent-react-native.

jasoncys avatar jasoncys commented on July 19, 2024

@TimoGlastra thanks for the comments. I managed to get pass "npm install" by using "npm install --force" with "package-lock.json" renamed. Then I got pass "pod install" with some warnings. When I tried to run the app using "npm run ios MyIphone", I got the following error:

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening AriesBifold.xcworkspace.

When I tried to build the app in Xcode, I encountered the following error:

Target Integrity Building for iOS Simulator, but the linked and embedded framework 'Indy.framework' was built for iOS.

I fixed the error by "setting Validate Workspace to Yes in the Build Settings tab" https://stackoverflow.com/questions/63267897/building-for-ios-simulator-but-the-linked-framework-framework-was-built

Then I tried to but the app in Xcode and I encountered the following error:
`Module map file '/Users/myself/Library/Developer/Xcode/DerivedData/AriesBifold-fmzurszqledrugbrzpflcnwqpgtf/Build/Products/Debug-iphonesimulator/rn-indy-sdk/rn_indy_sdk.modulemap' not found

Failed to emit precompiled header '/Users/Jason/Library/Developer/Xcode/DerivedData/AriesBifold-fmzurszqledrugbrzpflcnwqpgtf/Build/Intermediates.noindex/PrecompiledHeaders/AriesBifold-Bridging-Header-swift_15H2KKTG5ASMF-clang_2FZPMUW16POBQ.pch' for bridging header '/Users/Jason/Projects/Aries/aries-mobile-agent-react-native/ios/AriesBifold-Bridging-Header.h'`

And I checked that the "rn-indy-sdk" directory is missing under "/Users/myself/Library/Developer/Xcode/DerivedData/AriesBifold-fmzurszqledrugbrzpflcnwqpgtf/Build/Products/Debug-iphonesimulator/".

When I tried with "npm run ios MyIphone" in terminal, I received the following error:

`error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening AriesBifold.xcworkspace. Run CLI with --verbose flag for more details.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace AriesBifold.xcworkspace -configuration Debug -scheme AriesBifold -destination id=904d6069cd9e549c057138c96f40379f6fd227df

note: Using new build system
note: Planning build
note: Constructing build description
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'boost-for-react-native' from project 'Pods')
error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "8GUD26WFN3" with a private key was found. (in target 'AriesBifoldTests' from project 'AriesBifold')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'RNFS' from project 'Pods')

** BUILD FAILED **`

Shall I wait for the release of aries framework javascript to NPM and try again later?

Thanks and cheers,
Jason

from aries-mobile-agent-react-native.

TimoGlastra avatar TimoGlastra commented on July 19, 2024

It is now released to NPM under aries-framework (https://www.npmjs.com/package/aries-framework). We'll make sure to update the app to use the released version.

I think the problem you're running into is related to running the mobile agent in an iOS simulator. This is not supported at the moment. See https://github.com/hyperledger/aries-mobile-agent-react-native#platform

from aries-mobile-agent-react-native.

jasoncys avatar jasoncys commented on July 19, 2024

It is now released to NPM under aries-framework (https://www.npmjs.com/package/aries-framework). We'll make sure to update the app to use the released version.

I think the problem you're running into is related to running the mobile agent in an iOS simulator. This is not supported at the moment. See https://github.com/hyperledger/aries-mobile-agent-react-native#platform

Thanks @TimoGlastra. I managed to clean up all the errors by re "git clone" the package and npm cache clean before running the npm install and pod install as well as fixed the team ID error by replacing the error id with my developer ID. When I tried to load the app on my iphone using "npm run start" or "npm run ios MyPhone", the app is not loaded to MyPhone even I've set the target iOS to either 10.0 or 14.4.

Has it to be run on iOS 10.0?

from aries-mobile-agent-react-native.

jasoncys avatar jasoncys commented on July 19, 2024

It is now released to NPM under aries-framework (https://www.npmjs.com/package/aries-framework). We'll make sure to update the app to use the released version.
I think the problem you're running into is related to running the mobile agent in an iOS simulator. This is not supported at the moment. See https://github.com/hyperledger/aries-mobile-agent-react-native#platform

Thanks @TimoGlastra. I managed to clean up all the errors by re "git clone" the package and npm cache clean before running the npm install and pod install as well as fixed the team ID error by replacing the error id with my developer ID. When I tried to load the app on my iphone using "npm run start" or "npm run ios MyPhone", the app is not loaded to MyPhone even I've set the target iOS to either 10.0 or 14.4.

Has it to be run on iOS 10.0?

Here are the errors I encountered when trying to "Run" (the Play button) in Xcode:

<unknown>:0: error: module map file '/Users/Jason/Library/Developer/Xcode/DerivedData/AriesBifold-fmzurszqledrugbrzpflcnwqpgtf/Build/Products/Debug-iphoneos/rn-indy-sdk/rn_indy_sdk.modulemap' not found 1 error generated. <unknown>:0: error: failed to emit precompiled header '/Users/Jason/Library/Developer/Xcode/DerivedData/AriesBifold-fmzurszqledrugbrzpflcnwqpgtf/Build/Intermediates.noindex/PrecompiledHeaders/AriesBifold-Bridging-Header-swift_DB8WLRESGR3I-clang_IZF2ZUKH7SFC.pch' for bridging header '/Users/Jason/Projects/Aries/aries-mobile-agent-react-native/ios/AriesBifold-Bridging-Header.h' 3 errors generated.

I can find the "rn_indy_sdk.modulemap" in the directory "aries-mobile-agent-react-native/ios/Pods/Headers/Public/rn_indy_sdk" though.

from aries-mobile-agent-react-native.

jasoncys avatar jasoncys commented on July 19, 2024

It is now released to NPM under aries-framework (https://www.npmjs.com/package/aries-framework). We'll make sure to update the app to use the released version.
I think the problem you're running into is related to running the mobile agent in an iOS simulator. This is not supported at the moment. See https://github.com/hyperledger/aries-mobile-agent-react-native#platform

Thanks @TimoGlastra. I managed to clean up all the errors by re "git clone" the package and npm cache clean before running the npm install and pod install as well as fixed the team ID error by replacing the error id with my developer ID. When I tried to load the app on my iphone using "npm run start" or "npm run ios MyPhone", the app is not loaded to MyPhone even I've set the target iOS to either 10.0 or 14.4.
Has it to be run on iOS 10.0?

Here are the errors I encountered when trying to "Run" (the Play button) in Xcode:

<unknown>:0: error: module map file '/Users/Jason/Library/Developer/Xcode/DerivedData/AriesBifold-fmzurszqledrugbrzpflcnwqpgtf/Build/Products/Debug-iphoneos/rn-indy-sdk/rn_indy_sdk.modulemap' not found 1 error generated. <unknown>:0: error: failed to emit precompiled header '/Users/Jason/Library/Developer/Xcode/DerivedData/AriesBifold-fmzurszqledrugbrzpflcnwqpgtf/Build/Intermediates.noindex/PrecompiledHeaders/AriesBifold-Bridging-Header-swift_DB8WLRESGR3I-clang_IZF2ZUKH7SFC.pch' for bridging header '/Users/Jason/Projects/Aries/aries-mobile-agent-react-native/ios/AriesBifold-Bridging-Header.h' 3 errors generated.

I can find the "rn_indy_sdk.modulemap" in the directory "aries-mobile-agent-react-native/ios/Pods/Headers/Public/rn_indy_sdk" though.

I managed to make it work by doing the following:

  1. Manually clean the cache in Xcode by deleting the respective directories under DerivedData
  2. npm cache clean and delete the aries-mobile-agent-react-native directory.
  3. Re git clone aries-mobile-agent-react-native
  4. npm install; pod install
  5. Open the "workspace" , not the "project", file in Xcode. (I guess I failed to pod install earlier and caused Xcode not able to open the workspace and I have been using the project file. Sorry folks.)
  6. Plug in the iphone.
  7. Run.
  8. And the App is installed on my iPhone.

What a beauty! (I mean the app.) Now it's time to dig into the details. Thanks @TimoGlastra and et. al. contributors!

from aries-mobile-agent-react-native.

TimoGlastra avatar TimoGlastra commented on July 19, 2024

Awesome. Good to hear you got it working 👏

from aries-mobile-agent-react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.