Skip to content

App Clip: mian.jsbundle is my main instead of the index.clip #6

@Yofret-Rios

Description

@Yofret-Rios

Thanks for putting this awesome guide together! There is not much documentation on using React Native for this, but this has truly been helpful.

I've followed the guide, and it has been working well so far. There are a few things in the guide that are outdated, but with some research, I was able to make it work!

In development mode, I'm able to build and test my app clip with index.clip.js locally. However, when I try to test it on TestFlight, I can see both the main app and the app clip on the TestBuild, but my app clip is using my main app bundle instead of the app clip's bundle.

I'm currently using react native 0.73, and some of the build specified in this guide no longer exists. My Bundle React native code and images build phase for the AppClip looks like this:

if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
. "$HOME/.nvm/nvm.sh"
elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]]; then
. "$(brew --prefix nvm)/nvm.sh"
fi

set -e

WITH_ENVIRONMENT="$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh"
REACT_NATIVE_XCODE="$REACT_NATIVE_PATH/scripts/react-native-xcode.sh"

/bin/sh -c "$WITH_ENVIRONMENT $REACT_NATIVE_XCODE index.clip.js"

As specified in the guide I'm using index.clip.js as the entry point and my app clip experience is different than my main app experience, Am I missing something here?

Thanks in advance for any help provided!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions