У меня есть приложение IOS на nativescript, которое работало несколько дней назад ... затем я обновил версию xcode до 10.1, и приложение перестало работать ...
Теперь я получаю EXC_BAD_ACCESS в файле FIRApp в следующей строке (322)
if ([firAnalyticsClass respondsToSelector:startWithConfigurationSelector])
![xcode screenshot](https://i.stack.imgur.com/KUO0d.png)
У меня есть приложение firebase, и раньше оно работало нормально.
В моей папке App_resoures / iOS у меня есть GoogleService-Info.plist
, который я скачал с сайта Firebase.
В моей функции ngOnInit в app.components.ts у меня есть следующий код:
firebase.init({
// Optionally pass in properties for database, authentication and cloud messaging,
// see their respective docs.
iOSEmulatorFlush: true // I found this as a solution but it's not working...
}).then(
() => {
console.log("firebase.init done");
},
(error) => {
console.log(`firebase.init error: ${error}`);
}
);
В приложении для Android это работает как шарм.
Если я запускаю приложение из кода Visual Studio, я вижу заставку, а затем приложение закрывается без каких-либо ошибок в терминале / консоли. Из xCode я получаю ошибку, о которой упоминал, и в консоли получаю следующее:
2019-01-08 19:22:26.600969-0300 gdp[53568:11407743] - <AppMeasurement>[I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
2019-01-08 19:22:27.141461-0300 gdp[53568:11406950] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.
(lldb)
firebase.nativescript.json
{
"external_push_client_only": false,
"using_ios": true,
"using_android": true,
"firestore": false,
"realtimedb": false,
"authentication": false,
"remote_config": true,
"performance_monitoring": true,
"messaging": false,
"crashlytics": true,
"crash_reporting": false,
"storage": false,
"functions": false,
"facebook_auth": false,
"google_auth": false,
"admob": false,
"invites": false,
"dynamic_links": false,
"ml_kit": false
}
Цель развертывания
![enter image description here](https://i.stack.imgur.com/sHnZA.png)