You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/bin/sh -c /Users/orahi/Library/Developer/Xcode/DerivedData/TelldusLiveApp-cnfmuuwkmdhwyoegjsbhyuevjrbw/Build/Intermediates.noindex/ArchiveIntermediates/TelldusLiveApp/IntermediateBuildFilesPath/TelldusLiveApp.build/Release-iphoneos/TelldusLiveApp.build/Script-AFBB578133011C889A6047E7.sh
info: Exec FirebaseCrashlytics Run from Pods
/Users/orahi/builds/kimhvpU6/0/telldus/live-app-v3/ios/Pods/FirebaseCrashlytics/run: line 57: /Users/orahi/builds/kimhvpU6/0/telldus/live-app-v3/ios/Pods/FirebaseCrashlytics/upload-symbols: Bad CPU typein executable
Command PhaseScriptExecution failed with a nonzero exit code
/Users/orahi/builds/kimhvpU6/0/telldus/live-app-v3/ios/Pods/Pods.xcodeproj: 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 15.0.99. (in target 'GoogleSignIn' from project 'Pods')
/Users/orahi/builds/kimhvpU6/0/telldus/live-app-v3/ios/Pods/Pods.xcodeproj: 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 15.0.99. (in target 'boost-for-react-native' from project 'Pods')
/Users/orahi/builds/kimhvpU6/0/telldus/live-app-v3/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'react-native-accessibility' from project 'Pods')
/Users/orahi/builds/kimhvpU6/0/telldus/live-app-v3/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'Toast' from project 'Pods')
/Users/orahi/builds/kimhvpU6/0/telldus/live-app-v3/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'AppAuth' from project 'Pods')
/Users/orahi/builds/kimhvpU6/0/telldus/live-app-v3/ios/Pods/Pods.xcodeproj: 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 15.0.99. (in target 'react-native-maps' from project 'Pods')
/Users/orahi/builds/kimhvpU6/0/telldus/live-app-v3/ios/Pods/Pods.xcodeproj: 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 15.0.99. (in target 'react-native-orientation-locker' from project 'Pods')
/Users/orahi/builds/kimhvpU6/0/telldus/live-app-v3/ios/Pods/Pods.xcodeproj: 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 15.0.99. (in target 'react-native-background-timer' from project 'Pods')
/Users/orahi/builds/kimhvpU6/0/telldus/live-app-v3/ios/Pods/Pods.xcodeproj: 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 15.0.99. (in target 'RNBackgroundFetch' from project 'Pods')
/Users/orahi/builds/kimhvpU6/0/telldus/live-app-v3/ios/Pods/Pods.xcodeproj: 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 15.0.99. (in target 'react-native-sqlite-storage' from project 'Pods')
/Users/orahi/builds/kimhvpU6/0/telldus/live-app-v3/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'react-native-splash-screen' from project 'Pods')
This issue happens only in the CI, in my local machine it works fine.
We use fastlane to build and release the app in the CI.
It is the fastlane gym phase that fails.
require_relative'../node_modules/react-native/scripts/react_native_pods'require_relative'../node_modules/@react-native-community/cli-platform-ios/native_modules'platform:ios,'10.0'target'TelldusLiveApp'do# Pods for TelldusLiveAppconfig=use_native_modules!use_react_native!(:path=>config[:reactNativePath],# to enable hermes on iOS, change `false` to `true` and then install pods:hermes_enabled=>false)pod'GoogleSignIn','~> 5.0.2'post_installdo |installer|
react_native_post_install(installer)endend
AppDelegate.m:
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Telldus Live! app is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Telldus Live! app. If not, see <http://www.gnu.org/licenses/>.*/
#import"AppDelegate.h"
#import<React/RCTBridge.h>
#import<Firebase.h>
#import"React/RCTBundleURLProvider.h"
#import"React/RCTRootView.h"
#import<RNCPushNotificationIOS.h>
#import<RNGoogleSignin/RNGoogleSignin.h>
#import"Orientation.h"
#import"RNSplashScreen.h"
#import<React/RCTLinkingManager.h>// IMPORTANT: Paste import ABOVE the DEBUG macro
#import<TSBackgroundFetch/TSBackgroundFetch.h>@implementationAppDelegate
- (BOOL)application:(UIApplication *)applicationdidFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
if ([FIRApp defaultApp] == nil) {
[FIRApp configure];
}
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:selflaunchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"TelldusLiveApp"initialProperties:nil];
if (@available(iOS 13.0, *)) {
rootView.backgroundColor = [UIColor systemBackgroundColor];
} else {
rootView.backgroundColor = [UIColor whiteColor];
}
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [UIViewController new];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
[RNSplashScreen showSplash:@"LaunchView"inRootView:rootView];
// NOTE: Deprecated iOS Background Fetch API for devices running < iOS 13// part is not enabled.// [REQUIRED] Register BackgroundFetch
[[TSBackgroundFetch sharedInstance] didFinishLaunching];
// PUSH NOTIFICATION iOS// Define UNUserNotificationCenterUNUserNotificationCenter *center = [UNUserNotificationCentercurrentNotificationCenter];
center.delegate = self;
returnYES;
}
- (UIInterfaceOrientationMask)application:(UIApplication *)applicationsupportedInterfaceOrientationsForWindow:(UIWindow *)window {
return [Orientation getOrientation];
}
// PUSH NOTIFICATION iOS// Required for the register event.
- (void)application:(UIApplication *)applicationdidRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
[RNCPushNotificationIOS didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
}
// Required for the notification event. You must call the completion handler after handling the remote notification.
- (void)application:(UIApplication *)applicationdidReceiveRemoteNotification:(NSDictionary *)userInfofetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
{
[RNCPushNotificationIOS didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
}
// Required for the registrationError event.
- (void)application:(UIApplication *)applicationdidFailToRegisterForRemoteNotificationsWithError:(NSError *)error
{
[RNCPushNotificationIOS didFailToRegisterForRemoteNotificationsWithError:error];
}
// Required for localNotification event
- (void)userNotificationCenter:(UNUserNotificationCenter *)centerdidReceiveNotificationResponse:(UNNotificationResponse *)responsewithCompletionHandler:(void (^)(void))completionHandler
{
[RNCPushNotificationIOS didReceiveNotificationResponse:response];
}
//Called when a notification is delivered to a foreground app.
-(void)userNotificationCenter:(UNUserNotificationCenter *)centerwillPresentNotification:(UNNotification *)notificationwithCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler
{
completionHandler(UNNotificationPresentationOptionSound | UNNotificationPresentationOptionAlert | UNNotificationPresentationOptionBadge);
}
// method to respond to the google auth URL scheme
- (BOOL)application:(UIApplication *)applicationopenURL:(nonnull NSURL *)urloptions:(nonnull NSDictionary<NSString *,id> *)options {
NSURL *url2 = [NSURLURLWithString:@"widget-deeplink://purchase-premium"]; // NOTE: IMP: Do not changeBOOL equalty = [[url absoluteString] isEqualToString:[url2 absoluteString]];
if (equalty) {
return [RCTLinkingManager application:application openURL:url options:options];
}
return [RNGoogleSignin application:application openURL:url options:options];
}
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"fallbackResource:nil];
#elsereturn [[NSBundlemainBundle] URLForResource:@"main"withExtension:@"jsbundle"];
#endif
}
@end
Android
Click To Expand
Have you converted to AndroidX?
my application is an AndroidX application?
I am using android/gradle.settingsjetifier=true for Android compatibility?
I am using the NPM package jetifier for react-native compatibility?
android/build.gradle:
// N/A
android/app/build.gradle:
// N/A
android/settings.gradle:
// N/A
MainApplication.java:
// N/A
AndroidManifest.xml:
<!-- N/A -->
Environment
Click To Expand
react-native info output:(CI Machine)
System:
OS: macOS 11.4
CPU: (8) arm64 Apple M1
Memory: 989.61 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.11.0 - /opt/homebrew/bin/node
Yarn: 1.22.15 - /opt/homebrew/bin/yarn
npm: 8.0.0 - /opt/homebrew/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 13.0/13A233 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.1 => 0.64.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Platform that you're experiencing the issue on:
[x ] iOS
Android
iOS but have not tested behavior on Android
Android but have not tested behavior on iOS
Both
react-native-firebase version you're using that has this issue:
"@react-native-firebase/app": "^11.5.0"
Firebase module(s) you're using that has the issue:
Rosetta has it's own problems and since it's kind of a dead-end solution I wouldn't recommend going there, if you do have rosetta-related problems there will be zero interest in fixing them vs fixing actual M1 native issues
@mikehardy I just bumped into this issue. Got a new M1 laptop and was trying to get as far as I can get without installing Rosetta 2 at all.
You don't need rosetta
You do!
arm64 builds for apps with Crashlytics fail if Rosetta 2 is not installed on the machine, because /FirebaseCrashlytics/upload-symbols is not an arm64 executable and part of the build process.
It would be great if this could be documented somewhere :)
Oh interesting. I've never tried actually uninstalling Rosetta2 completely, that seems counterproductive.
I guess I should be more specific: You do not need your shell / cocoapods / Xcode all that (your toolchain) running under Rosetta2. And in fact there was a fair bit of collaboration to specifically warn people off it - first on Discord amongst myself and some others trying to get M1s to work well, then concretely in:
I do expect Rosetta2 to be installed though, I can't imagine trying to run without it, yet.
I just checked firebase-ios-sdk and I did not see any issues logged upstream about this. you might try logging this there to see if they can make it a universal binary
I do believe Rosetta2 is not required for any part of the actual app build though, if you'll go with me and draw a fine line between "app build" and "tangential things like symbol upload"
Issue
iOS Archive fails with error
TelldusLiveApp-TelldusLiveApp.log
This issue happens only in the CI, in my local machine it works fine.
We use fastlane to build and release the app in the CI.
It is the fastlane
gym
phase that fails.CI Machine:
System:
OS: macOS 11.4
CPU: (8) arm64 Apple M1
Memory: 989.61 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:(CI Machine)react-native-firebase
version you're using that has this issue:Firebase
module(s) you're using that has the issue:TypeScript
?N
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: