Flutter - iOS build using Bitrise
I am using Bitrise to generate iOS build of my flutter project. I have follow this steps to configure workflow. It shows me error like this. . Can you please guide what's wrong here and how to fix this error.
do you know?
how many words do you know
See also questions close to this topic
-
Command failed: xcrun instruments -s
I want to run my react native app on a real ios device with this line :
npx react-native run-ios --udid SOME-UDID
but i got this error :
xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find instruments 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory) xcrun: error: unable to find utility "instruments", not a developer tool or in PATH error Command failed: xcrun instruments -s xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find instruments 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory) xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
everything is ok on simulator
I'm using XCODE 13
-
IOS Launcher in android studio
I'm trying to change the whole Android OS installed app icons into IOS icons, please help me with the proper code or library for android kotlin
-
Debugging undefined is not an object (evaluating 'Object.keys(routeConfigs)')
I'm using Expo and React Native to create a simple iOS app. I am currently getting this error and have no idea how to fix it. I've tried various other solutions on Stack Overflow to no avail.
My code is:
import 'react-native-gesture-handler'; import React from 'react'; import { createStackNavigator } from 'react-navigation-stack'; import { NavigationContainer } from '@react-navigation/native'; import HomeScreen from './src/screens/HomeScreen'; const Stack = createStackNavigator(); export default function App() { return ( <NavigationContainer> <Stack.Navigator> <Stack.Screen name="Home" component={HomeScreen} /> </Stack.Navigator> </NavigationContainer> ); }
Here is my
HomeScreen.js
import React from 'react'; import { Text, View } from 'react-native'; export default function HomeScreen () { return ( <View> <Text>Welcome Home!</Text> </View> ) }
My packages:
"packages": { "": { "name": "safey", "version": "1.0.0", "dependencies": { "@react-native-community/masked-view": "^0.1.11", "@react-navigation/native": "^6.0.10", "@react-navigation/stack": "^6.0.10", "expo": "~45.0.0", "expo-splash-screen": "~0.15.1", "expo-status-bar": "~1.3.0", "react": "17.0.2", "react-dom": "17.0.2", "react-native": "0.68.1", "react-native-gesture-handler": "^2.4.2", "react-native-reanimated": "^2.8.0", "react-native-safe-area-context": "^4.2.5", "react-native-screens": "^3.13.1", "react-native-web": "0.17.7", "react-navigation": "^4.4.4", "react-navigation-stack": "^2.10.4" },
-
how to change prettier format for react native
my code formatting prettier didn't works well for react native, i don't understand where to config it but it works well with flutter
from this code
import { View, Text } from 'react-native' import React from 'react' export default function App() { return ( <View> <Text>Apps</Text> </View> ) }
it's formatted to this
import { View, Text } from 'react-native' import React from 'react' export default function App() { return ( < View > < Text > Apps < /Text> < /View> ) }
-
How to group firebase data in flutter with DateTime?
I am making a chat application in flutter using firebase. I want to show a header with the date whenever the date changes. How can I group messages in flutter coming from firebase on the basis of date and show a header with the changed date?
I have tried GroupedListView package but I was not able to retrieve the chatmessages successfully.
-
Can you make complete apps using Flutter & Dart or just the UI part of an app?
I'm confused about what Flutter framework actually does, I know that it uses Dart and have heard that both of them can be used to create cross-platform apps.
But Wikipedia defines Flutter as a "UI Framework", so my question is, can you make a complete app (for mobile) which also has backend part (communicates with a database) built entirely using Flutter & Dart and not only the UI part?
If you didn't get my question, here is an example:
Suppose a front-end web developer works on client side programming in his job, and the backend logic is written by another backend developer.
When it comes to mobile app development, suppose as a Flutter developer, your job is to create apps, but does that mean that as a Flutter developer, you'll only write the front-end logic and leave the backend part for another backend developer like in web world? Can Flutter developers also write the backend of an app using only Flutter & Dart? If not, then who writes the backend of a mobile app and what tools/languages/frameworks does he uses?
-
Bitrise: Could not resolve all artifacts for configuration ':classpath' Could not resolve com.google.gms:google-services:4.2.0
After updating
com.android.tools.build:gradle
andcom.google.gms:google-services
I can build project local (commandgradlew build --scan
) but inBitrise
I get BUILD FAILED and message:FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'git'. > Could not resolve all artifacts for configuration ':classpath'. > Could not resolve com.android.tools.build:gradle:4.1.0. Required by: project : > Could not resolve com.android.tools.build:gradle:4.1.0. > Could not get resource 'http://dl.bintray.com/populov/maven/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'. > Could not GET 'http://dl.bintray.com/populov/maven/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'. Received status code 502 from server: Bad Gateway > Could not resolve com.google.gms:google-services:4.2.0. Required by: project : > Could not resolve com.google.gms:google-services:4.2.0. > Could not get resource 'http://dl.bintray.com/populov/maven/com/google/gms/google- services/4.2.0/google-services-4.2.0.pom'. > Could not GET 'http://dl.bintray.com/populov/maven/com/google/gms/google- services/4.2.0/google-services-4.2.0.pom'. Received status code 502 from server: Bad Gateway > Could not resolve io.fabric.tools:gradle:1.28.0.
I've tried every recommendations what I found, but I still get this message.
My
build.gradle
filebuildscript { repositories { maven { url "http://dl.bintray.com/populov/maven" } google() mavenCentral() jcenter() maven { url 'https://maven.google.com/' name 'Google' } maven { url 'https://dl.bintray.com/android/android-tools' } maven { url 'https://maven.fabric.io/public' } maven { url 'https://google.bintray.com/exoplayer/' } } dependencies { classpath 'com.android.tools.build:gradle:4.1.0' classpath 'com.google.gms:google-services:4.2.0' classpath 'io.fabric.tools:gradle:1.28.0' classpath "me.tatarka:gradle-retrolambda:3.7.1' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven { url "http://dl.bintray.com/populov/maven" } mavenCentral() jcenter() maven { url "https://maven.google.com/" name 'Google' } maven { url "https://dl.bintray.com/android/android-tools" } maven { url "https://maven.fabric.io/public" } maven { url "https://google.bintray.com/exoplayer/" } } }
gradle-wrapper.properties:
distributionBase=GRADLE_USER_HOME distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME
-
Cannot run appium tests in Bitrise (java+selenide+ios)
I am trying to run automation tests in Bitrise but got an error. I can run my tests on my local machine and everything is ok.
device: simulator iOS 15.4 machine: Xcode 13.3.x on macOS 12.2 java: 17 selenide 6.4.0 appium 1.22.3 gradle 7.4 Node.js: 12.22.11 NPM: 6.14.16
Could you please help me?
2022-04-18T15:44:02.335+0000 [DEBUG] [TestEventLogger] com.tunein.mobile.tests.ios.IosBooksAroundFirstTest.beforeTest STARTED 2022-04-18T15:44:02.390+0000 [DEBUG] [TestEventLogger] 2022-04-18T15:44:02.390+0000 [DEBUG] [TestEventLogger] com.tunein.mobile.tests.ios.IosBooksAroundFirstTest.beforeTest FAILED 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:585) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:225) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:164) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:79) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:87) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:105) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//com.tunein.mobile.appium.driverprovider.IosDriverProvider.createDriver(IosDriverProvider.java:73) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.webdriver.DefaultDriverFactory.createInstanceOf(DefaultDriverFactory.java:40) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.webdriver.DefaultDriverFactory.create(DefaultDriverFactory.java:29) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.webdriver.WebDriverFactory.createWebDriverInstance(WebDriverFactory.java:109) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.webdriver.WebDriverFactory.createWebDriver(WebDriverFactory.java:69) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.drivercommands.CreateDriverCommand.lambda$createDriver$1(CreateDriverCommand.java:80) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.logevents.SelenideLogger.get(SelenideLogger.java:165) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.drivercommands.CreateDriverCommand.createDriver(CreateDriverCommand.java:53) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.impl.WebDriverThreadLocalContainer.createDriver(WebDriverThreadLocalContainer.java:170) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.impl.WebDriverThreadLocalContainer.getAndCheckWebDriver(WebDriverThreadLocalContainer.java:156) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.WebDriverRunner.getAndCheckWebDriver(WebDriverRunner.java:130) 2022-04-18T15:44:02.391+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.impl.StaticDriver.getAndCheckWebDriver(StaticDriver.java:65) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.SelenideDriver.getAndCheckWebDriver(SelenideDriver.java:206) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.logevents.SelenideLogger.run(SelenideLogger.java:152) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.drivercommands.Navigator.open(Navigator.java:86) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.SelenideDriver.open(SelenideDriver.java:97) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//com.codeborne.selenide.Selenide.open(Selenide.java:127) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//com.tunein.mobile.appium.driverprovider.AppiumDriverProvider.getAppiumDriver(AppiumDriverProvider.java:17) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//com.tunein.mobile.tests.BaseTest.beforeTest(BaseTest.java:47) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at java.base@17.0.2/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at java.base@17.0.2/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at java.base@17.0.2/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at java.base@17.0.2/java.lang.reflect.Method.invoke(Method.java:568) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:135) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//org.testng.internal.invokers.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:65) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//org.testng.internal.invokers.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:381) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//org.testng.internal.invokers.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:319) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//org.testng.TestRunner.invokeTestConfigurations(TestRunner.java:645) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//org.testng.TestRunner.beforeRun(TestRunner.java:634) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//org.testng.TestRunner.run(TestRunner.java:596) 2022-04-18T15:44:02.392+0000 [DEBUG] [TestEventLogger] at app//org.testng.SuiteRunner.runTest(SuiteRunner.java:429) 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] at app//org.testng.SuiteRunner.access$000(SuiteRunner.java:32) 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] at app//org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:467) 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] at app//org.testng.internal.thread.ThreadUtil.lambda$execute$0(ThreadUtil.java:58) 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] at java.base@17.0.2/java.util.concurrent.FutureTask.run(FutureTask.java:264) 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] at java.base@17.0.2/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] at java.base@17.0.2/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] at java.base@17.0.2/java.lang.Thread.run(Thread.java:833) 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] Caused by: 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] Build info: version: '4.1.3', revision: '7b1ebf28ef' 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] System info: host: 'vm-osx-xcode-13.3.x-g2.4core-2c292c9b-168e-4744-b89f-3e7756272483.local', ip: 'fe80:0:0:0:1807:af7c:e23f:7704%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '12.2.1', java.version: '17.0.2' 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] Driver info: driver.version: SelenideDriver 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] at app//io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:130) 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] at app//io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:102) 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] at app//io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:146) 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] at app//io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:180) 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] at app//org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:567) 2022-04-18T15:44:02.393+0000 [DEBUG] [TestEventLogger] ... 43 more