Issue
I'm trying to compile my app as I used to do, but it's returning this error:
** ARCHIVE FAILED **
The following build commands failed:
CompileC /Users/myuser/Library/Developer/Xcode/DerivedData/myapp-gcpsxwgciwwqcxghqjubozbsahac/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/Pods.build/Debug-iphoneos/GoogleDataTransport.build/Objects-normal/arm64/GDTCORPlatform.o /Users/myuser/dev/myapp-ionic/platforms/ios/Pods/GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCORPlatform.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'GoogleDataTransport' from project 'Pods')
(1 failure)
xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running subprocess cordova.
cordova build ios exited with exit code 65.
Re-running this command with the --verbose flag may provide more information.
What I tried so far:
- remove and add cordova ios platform @ 5.1.1
ionic repair
several times- pod deintegrate && pod install
My package.json has
"@ionic-native/firebase-x": "^5.36.0",
"@ionic/angular": "^4.7.1",
"cordova-plugin-androidx": "^1.0.2",
"cordova-plugin-androidx-adapter": "^1.1.0",
"cordova-plugin-firebase": "^2.0.5",
"cordova-plugin-firebasex": "^7.0.1",
...
"cordova-plugin-googlemaps": "^2.7.1",
"cordova-plugin-googlemaps-sdk": "git+https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk.git",
"phonegap-plugin-barcodescanner": "^8.1.0",
...
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-app-version": {},
"cordova-plugin-network-information": {},
"cordova-plugin-screen-orientation": {},
"cordova.plugins.diagnostic": {
"ANDROID_SUPPORT_VERSION": "28.+"
},
"cordova-plugin-badge": {},
"cordova-plugin-firebasex": {
"FIREBASE_ANALYTICS_COLLECTION_ENABLED": "true",
"FIREBASE_PERFORMANCE_COLLECTION_ENABLED": "true",
"FIREBASE_CRASHLYTICS_COLLECTION_ENABLED": "true",
"ANDROID_ICON_ACCENT": "#FF00FFFF",
"ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION": "17.0.0",
"ANDROID_FIREBASE_ANALYTICS_VERSION": "17.2.1",
"ANDROID_FIREBASE_MESSAGING_VERSION": "20.0.0",
"ANDROID_FIREBASE_CONFIG_VERSION": "19.0.3",
"ANDROID_FIREBASE_PERF_VERSION": "19.0.1",
"ANDROID_FIREBASE_AUTH_VERSION": "19.1.0",
"ANDROID_CRASHLYTICS_VERSION": "2.10.1",
"ANDROID_CRASHLYTICS_NDK_VERSION": "2.1.1"
},
"cordova-plugin-androidx-adapter": {},
"cordova-plugin-apprate": {
"PLAY_CORE_VERSION": "1.+"
},
"uk.co.workingedge.phonegap.plugin.launchnavigator": {
"GOOGLE_API_KEY_FOR_ANDROID": "xxxxxxxxxxxxxx",
"OKHTTP_VERSION": "3.12.0",
},
"cordova-plugin-androidx": {},
"cordova-plugin-inappbrowser": {},
"cordova-clipboard": {},
"cordova-plugin-geolocation": {
"GPS_REQUIRED": "true"
},
"phonegap-plugin-barcodescanner": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"cordova-plugin-googlemaps": {
},
"cordova-plugin-ionic-webview": {}
},
"platforms": [
"ios"
]
}
My ionic info
Ionic:
Ionic CLI : 6.20.8 (/Users/myuser/.nvm/versions/node/v14.19.1/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 4.11.13
@angular-devkit/build-angular : 0.803.29
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.3.3
Cordova:
Cordova CLI : 11.1.0
Cordova Platforms : ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 20 other plugins)
Utility:
cordova-res : 0.15.4
native-run (update available: 1.7.2) : 1.7.1
System:
Android SDK Tools : 26.1.1 (/Users/myuser/Library/Android/sdk)
ios-deploy : 1.12.1
ios-sim : 8.0.2
NodeJS : v14.19.1 (/Users/myuser/.nvm/versions/node/v14.19.1/bin/node)
npm : 6.14.17
OS : macOS
Xcode : Xcode 14.3 Build version 14E222b
My Podfile
source 'https://cdn.cocoapods.org/'
platform :ios, '11.0'
use_frameworks!
target 'MyApp' do
project 'MyApp.xcodeproj'
pod 'Firebase/Core', '6.13.0'
pod 'Firebase/Auth', '6.13.0'
pod 'Firebase/Messaging', '6.13.0'
pod 'Firebase/Performance', '6.13.0'
pod 'Firebase/RemoteConfig', '6.13.0'
pod 'Fabric', '1.10.2'
pod 'Crashlytics', '3.14.0'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
end
Solution
Another alternative is to downgrade Xcode to 14.1. Not the most elegant but it got the app compiling again.
Answered By - amcastror
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.