I am trying to get EAS builds and development clients working on Expo SDK 44, but I ran into the following error in http://localhost:19002/:
Error loading DevTools
No scheme specified for development client
Unfortunately, there isn't any additional logs regarding this error.
Here is my eas.json file:
{
"cli": {
"version": ">= 0.48.2"
},
"build": {
"development": {
"releaseChannel": "dev2",
"developmentClient": true,
"distribution": "internal",
"android": {
"gradleCommand": ":app:assembleDebug"
},
"ios": {
"buildConfiguration": "Debug"
}
},
"preview": {
"releaseChannel": "preview1",
"distribution": "internal"
},
"production": {
"releaseChannel": "prod4"
}
},
"submit": {
"production": {}
}
}
And my app.json:
{
"expo": {
"name": "Truffle",
"slug": "simmer2",
"version": "1.0.7",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"hooks": {
"postPublish": [
{
"file": "sentry-expo/upload-sourcemaps",
"config": {
"organization": "truffle-tg",
"project": "truffle-tg",
"authToken": "c5dc914d80434bdca0762c1404179552e6695d7813114928945fc2c1c9fab08a"
}
}
]
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.simmer2.foodie",
"buildNumber": "1.0.6",
"infoPlist": {
"NSPhotoLibraryUsageDescription": "Truffle accesses your library so you can upload a picture for your profile.",
"NSLocationWhenInUseUsageDescription": "Truffle uses your location to find restaurants near you."
},
"config": {
"googleMapsApiKey": "AIzaSyDD2MM_1D1ztXv8iAzVReIQUVjetfAfyoo"
}
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
},
"config": {
"googleMaps": {
"apiKey": "AIzaSyBGnK6cBCTMxM5O2be5pwi-zVoIWNBsdVA"
}
},
"softwareKeyboardLayoutMode": "pan",
"package": "com.simmer2.foodie",
"versionCode": 7
},
"web": {
"favicon": "./assets/favicon.png"
},
"plugins": [
"sentry-expo"
]
}
}
I did add import 'expo-dev-client'; at the top of App.tsx file, because according to the documentation (https://docs.expo.dev/development/getting-started/), this improves the error messaging during the development process, but I didn't see any additional error messages.
Do you have any guidance on why the build does not work on the dev client? Thanks!
7 months has passed, so guessing you found a way. My suggestion would be to add a scheme to the app.json:
{
"expo": {
"name": "Truffle",
"slug": "simmer2",
"scheme": "truffle"
"version": "1.0.7",
...
Related
Hey guys I have been trying to run my expo project build locally for debugging but I keep running into the following error when running the following command. Any help is appreciated!
eas build --profile development --local
✔ Select platform › Android
✔ Using remote Android credentials (Expo server)
✔ Using Keystore from configuration: Build Credentials xxxxxxxx (default)
TypeError: Invalid Version:
This is my eas.json
{
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"android": {
"buildType": "apk"
},
"ios": {
"simulator": true
}
},
"preview": {
"distribution": "internal"
},
"production": {}
}
}
And my app.json
{
"expo": {
"name": "financialkeeps",
"slug": "financialkeeps",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/appicon2.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splashscreen2.png",
"resizeMode": "cover",
"backgroundColor": "#FFFFFF"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-appicon2.png",
"backgroundColor": "#FFFFFF"
},
"package": "com.financialkeeps"
},
"ios": {
"supportsTablet": true,
"simulator": true,
"bundleIdentifier": "com.financialkeeps"
},
"web": {
"favicon": "./assets/favicon.png"
},
"extra": {
"eas": {
"projectId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
},
"react-native-google-mobile-ads": {
"android_app_id": "ca-app-pub-xxxxxxxxxxxxxxx",
"ios_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx"
}
}
I have my Expo React Native - Stand Alone app (Published to Test Flight) and I still seeing the Expo icon on the push notifications:
This is my app.json
{
"expo": {
"name": "test-answers",
"slug": "test-answers",
"version": "1.0.6",
"orientation": "portrait",
"icon": "./assets/images/appicon-1024.png",
"scheme": "myapp",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"notification":{
"icon":"./assets/images/push-notification-icon-expo.png",
"color": "#311b92",
"androidMode": "default",
"androidCollapsedTitle": "Updates from Test Answers",
"iosDisplayInForeground": true
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"platforms" :[
"ios",
"android"
],
"ios": {
"icon": "./assets/images/appicon-1024.png",
"usesAppleSignIn": true,
"supportsTablet": true,
"bundleIdentifier": "com.test.test",
"config": {
"googleMobileAdsAppId": "ca-app-pub-111222~111222",
"googleMobileAdsAutoInit" : true
},
"googleServicesFile": "./assets/GoogleService-Info.plist",
"buildNumber": "1.0.6"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"config": {
"googleMobileAdsAppId": "ca-app-pub-111222~111222",
"googleMobileAdsAutoInit" : true
},
"googleServicesFile": "./assets/google-services.json",
"package": "com.test.test",
"versionCode": 1
},
"web": {
"favicon": "./assets/images/favicon.png",
"config": {
"firebase": {
"apiKey": "abc123",
"measurementId": "G-123abc"
}
}
}
}
}
Any clue?
react-native-fbads: 7.1.0
react-native: 0.68.2
I am using an eas build for a project that is part of a managed expo workflow. I am trying to integrate Facebook ads into the app using react-native-fbads. After following their expo installation instructions in the main readme, when I attempt to run eas build --profile development --platform ios I get the following cryptic error:
Failed to resolve plugin for module "react-native-fbads" relative to "D:\Projects\pollenbbmap"
Can anyone help me resolve this error? Happy to provide any additional information.
My app.json looks like this
{
"expo": {
"owner": "gainesvilleboyz",
"name": "pollenbbmap",
"slug": "pollenbbmap",
"version": "0.0.1",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.arham23.pollenbbmap"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
},
"web": {
"favicon": "./assets/favicon.png"
},
"plugins": [
[
"react-native-fbsdk-next",
{
"appID": "XXXX",
"clientToken": "XXX",
"displayName": "Pollen Map App",
"advertiserIDCollectionEnabled": false,
"autoLogAppEventsEnabled": false,
"isAutoInitEnabled": true,
"iosUserTrackingPermission": "This identifier will be used to deliver personalized ads to you."
}
],
"react-native-fbads"
]
}
}
I'm trying to build my react-native app but I keep getting this error.
{
"expo": {
"name": "NuCamp",
"slug": "nucampsite",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"bundleIdentifier": "co.nucamp.nucampsite.student"
},
"android": {
"package": "co.nucamp.nucampsite.student"
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
this is my first time doing this and I'm completely lost. I tried searching for other people that had the same problems but I couldn't find any.
you are using expo-cli#3.9.1, as the warning explains there is a much newer version and you should install it and use it instead :) that will resolve your issue
How to get deep linking url using react native expo?
I tried as per Expo documentation https://docs.expo.io/versions/latest/guides/linking.html#handling-urls-in-your-app using scheme but it is not working for android.
app.json =>
{
"expo": {
"scheme": "myapp"
}
}
Thanks!
It works if you click on a html link like :
Link to your app
Indeed in the production environnement (not in the dev one) your user click on a link on the Internet. So no problems !
You need also to add this to your app.json
{ "expo": { "scheme": "myapp" } }
In fact, there is a known and open issue with Android. Take a look: https://github.com/expo/expo/issues/765
{
"expo": {
"name": "Spoton Pay",
"slug": "spotonpay_expo_mobile",
"sdkVersion": "47.0.0",
"version": "1.4.1",
"userInterfaceStyle": "automatic",
"icon": "./src/assets/icons/mainbtn.png",
"assetBundlePatterns": ["**/*"],
"extra": {
"eas": {
"projectId": "649e06cd-43b5-4749-b455-7e886a61d9c2"
}
},
"android": {
"package": "com.codelantic.spotonexpomobile",
"versionCode": 24,
"intentFilters": [
{
"action": "VIEW",
"autoVerify": true,
"data": [
{
"scheme": "merchants",
"host": "qaspoton.monexfintech.com"
}
],
"category": ["BROWSABLE", "DEFAULT"]
}
],
"adaptiveIcon": {
"foregroundImage": "./src/assets/icons/mainbtn.png",
"backgroundColor": "#fff"
}
}
}
}
Delete the /android folder and expo
run "expo prebuild" command and build it.
{
"expo": {
"name": "Spoton Pay",
"slug": "spotonpay_expo_mobile",
"sdkVersion": "47.0.0",
"version": "1.4.1",
"userInterfaceStyle": "automatic",
"icon": "./src/assets/icons/mainbtn.png",
"assetBundlePatterns": ["**/*"],
"extra": {
"eas": {
"projectId": "649e06cd-43b5-4749-b455-7e886a61d9c2"
}
},
"android": {
"package": "com.codelantic.spotonexpomobile",
"versionCode": 24,
"intentFilters": [
{
"action": "VIEW",
"autoVerify": true,
"data": [
{
"scheme": "merchants",
"host": "qaspoton.monexfintech.com"
}
],
"category": ["BROWSABLE", "DEFAULT"]
}
],
"adaptiveIcon": {
"foregroundImage": "./src/assets/icons/mainbtn.png",
"backgroundColor": "#fff"
}
}
}
}