heritageholdings / passkey-example

An example repository showcasing end-to-end passkey registration and authentication on a mobile app using Node.js and React Native
MIT License
15 stars 2 forks source link

Xcode compilation, EXConstants Script Build error #9

Open misbell opened 1 week ago

misbell commented 1 week ago
Screenshot 2024-11-23 at 11 55 02 AM

here's a screenshot of the error. Hope it helps.

misbell commented 1 week ago

here's the build log.

Build PasskeyDemo_2024-11-22T19-53-16.txt

misbell commented 1 week ago

I believe my initial problems were because I installed node 22. when I installed node 18.8 as you instructed, I was able to build.

I am guessing the reason the app DOES build and run with the yarn command (as opposed to Xcode) is because the environment variable reported missing here is included somewhere in the mix.

misbell commented 1 week ago

arghh. it's already included in the .env file.

Screenshot 2024-11-23 at 12 54 32 PM
misbell commented 1 week ago
Screenshot 2024-11-23 at 1 05 01 PM

Commented this out, the app built in Xcode.

So what's the problem here?

misbell commented 1 week ago
Screenshot 2024-11-23 at 4 54 40 PM

added associated ngrok domain as article recommended.

misbell commented 1 week ago

your process works okay, but why can't I do an ordinary pod update or pod install? crashes immediately.

misbell commented 1 week ago

works okay in simulator, can't see development server from iPhone no matter what I try. Also no debug menu on device, either by shaking or 3 finger press. I build a fresh expo app, ran on iPhone, saw dev server without problem.

Screenshot 2024-11-23 at 6 58 40 PM

misbell commented 1 week ago

By logging in on both Mac and iPhone, I am now able to fetch the development server. You might want to add this explicit not to the instructions? Could help people save a day or two.

IMG_0906

misbell commented 1 week ago

However, different error when I try to load the app:

IMG_EC0362C480B3-1

FYI the app loads fine from the browser via the USB connected iPhone, and over the internet from an iPad on the same network.

misbell commented 1 week ago

and finally, deleting a prior side by side version of the app on the phone solved the 'error loading app' problem.

IMG_345F121D9A05-1

misbell commented 1 week ago

Boiled down:

heritage app

first, make sure it's right version of node

second, sign into expo both on macos and ios

third, make sure there's no other version of the app running on the iphone

Next, I have to make the process work, because right now, it's not.