Finding which framework makes the Private API Call _terminateWithStatus - iphone

I have just received an email from Apple stating my iOS app has been rejected for the call of _terminateWithStatus. Unfortunately I have no idea which framework might be the one making this call.
I could find "terminateWithStatus" with the follow "strings" command executed on the compiled executable, so I know that it is there, but no idea how to figure out which framework makes that call.
strings myapp | grep 'terminateWithStatus'
I do not have GHUnit framework, which was the culprit for the others seeing the same issue few years back - see Finding Private API Call _terminateWithStatus
This is what otool shows:
$ otool -L myapp
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 307.5.0)
/usr/lib/libsqlite3.dylib (compatibility version 9.0.0, current version 254.6.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)
/System/Library/Frameworks/AVFoundation.framework/AVFoundation (compatibility version 1.0.0, current version 2.0.0)
/System/Library/Frameworks/AddressBook.framework/AddressBook (compatibility version 1.0.0, current version 30.0.0)
/System/Library/Frameworks/AssetsLibrary.framework/AssetsLibrary (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox (compatibility version 1.0.0, current version 492.0.0)
/System/Library/Frameworks/CoreData.framework/CoreData (compatibility version 1.0.0, current version 754.2.0)
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation (compatibility version 150.0.0, current version 1349.55.0)
/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics (compatibility version 64.0.0, current version 1070.22.0)
/System/Library/Frameworks/CoreLocation.framework/CoreLocation (compatibility version 1.0.0, current version 2101.0.62)
/System/Library/Frameworks/CoreMedia.framework/CoreMedia (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreMotion.framework/CoreMotion (compatibility version 1.0.0, current version 2101.0.62)
/System/Library/Frameworks/CoreTelephony.framework/CoreTelephony (compatibility version 1.0.0, current version 0.0.0)
/System/Library/Frameworks/CoreVideo.framework/CoreVideo (compatibility version 1.2.0, current version 1.5.0)
/System/Library/Frameworks/GLKit.framework/GLKit (compatibility version 1.0.0, current version 87.0.0)
/System/Library/Frameworks/MediaPlayer.framework/MediaPlayer (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/MessageUI.framework/MessageUI (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices (compatibility version 1.0.0, current version 775.2.37)
/System/Library/Frameworks/OpenGLES.framework/OpenGLES (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/StoreKit.framework/StoreKit (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration (compatibility version 1.0.0, current version 888.50.20)
/System/Library/Frameworks/AdSupport.framework/AdSupport (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore (compatibility version 1.0.0, current version 603.1.30)
/System/Library/Frameworks/SafariServices.framework/SafariServices (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/WebKit.framework/WebKit (compatibility version 1.0.0, current version 603.1.30)
/System/Library/Frameworks/ImageIO.framework/ImageIO (compatibility version 1.0.0, current version 0.0.0)
/System/Library/Frameworks/UIKit.framework/UIKit (compatibility version 1.0.0, current version 3600.7.47)
/System/Library/Frameworks/Accelerate.framework/Accelerate (compatibility version 1.0.0, current version 4.0.0)
/System/Library/Frameworks/QuartzCore.framework/QuartzCore (compatibility version 1.2.0, current version 1.11.0)
/usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)
/System/Library/Frameworks/Foundation.framework/Foundation (compatibility version 300.0.0, current version 1349.54.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.50.2)
/System/Library/Frameworks/CFNetwork.framework/CFNetwork (compatibility version 1.0.0, current version 811.4.18)
/System/Library/Frameworks/Security.framework/Security (compatibility version 1.0.0, current version 0.0.0)
Anybody has any idea how to figure out which framework might be the one making that call?
Thanks

I guess I am going to answer my own question.
It turns out, the GoogleToolboxForMax framework which has this _terminateWithStatus call, which I installed via cocoapods/
I figured it out by running
$ grep -rn "terminateWithStatus" *
Pods/GoogleToolboxForMac/UnitTesting/GTMIPhoneUnitTestDelegate.m:34:- (void)_terminateWithStatus:(int)status;
Pods/GoogleToolboxForMac/UnitTesting/GTMIPhoneUnitTestDelegate.m:115: = [UIApplication instanceMethodSignatureForSelector:#selector(_terminateWithStatus:)];
Pods/GoogleToolboxForMac/UnitTesting/GTMIPhoneUnitTestDelegate.m:120: [terminateInvocation setSelector:#selector(_terminateWithStatus:)];
Here I have modified the method and all references _terminateWithStatus to _terminateWithStatusModified and then I could submit my app.

Related

Flutter 3.7 create different result from before(3.3) and from doc, based on this command `flutter create --template=package <package_name>`

based on this flutter doc :
this line flutter create --template=package hello
should produce following content :
LICENSE
test/hello_test.dart
hello.iml
.gitignore
.metadata
pubspec.yaml
tool.
README.md
lib/hello.dart
.idea/modules.xml, .idea/workspace.xml
CHANGELOG.md
but when update to flutter 3.7
its generate more content like this following image :
it create more content like :
android
ios
etc
and give some warning :
This app is using a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to migrate this app to the V2 embedding.
complete log :
PS E:\***\***\****> flutter create --template=package hello
Creating project hello...
Running "flutter pub get" in hello...
Resolving dependencies in hello... (1.8s)
+ async 2.10.0
+ boolean_selector 2.1.1
+ characters 1.2.1
+ clock 1.1.1
+ collection 1.17.0 (1.17.1 available)
+ fake_async 1.3.1
+ flutter 0.0.0 from sdk flutter
+ flutter_lints 2.0.1
+ flutter_test 0.0.0 from sdk flutter
+ js 0.6.5 (0.6.7 available)
+ lints 2.0.1
+ matcher 0.12.13 (0.12.14 available)
+ material_color_utilities 0.2.0
+ meta 1.8.0 (1.9.0 available)
+ path 1.8.2 (1.8.3 available)
+ sky_engine 0.0.99 from sdk flutter
+ source_span 1.9.1
+ stack_trace 1.11.0
+ stream_channel 2.1.1
+ string_scanner 1.2.0
+ term_glyph 1.2.1
+ test_api 0.4.16 (0.4.18 available)
+ vector_math 2.1.4
Changed 23 dependencies in hello!
This app is using a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to migrate this app to the V2 embedding.
Take a look at the docs for migrating an app:
https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
Wrote 13 files.
All done!
Your package code is in hello\lib\hello.dart
i search online based on that warning, and not single one solution mention about package. my question is Why it is different from before and what should i do about the warning. I need help and your guide, thank you in advance.

Flutter upgrade

After upgrading Flutter, and when i create a new project i'm getting + lines :
Creating project prgh...
Running "flutter pub get" in prgh...
Resolving dependencies in prgh... (1.6s)
+ async 2.10.0
+ boolean_selector 2.1.1
+ characters 1.2.1
+ clock 1.1.1
+ collection 1.17.0 (1.17.1 available)
+ cupertino_icons 1.0.5
+ fake_async 1.3.1
+ flutter 0.0.0 from sdk flutter
+ flutter_lints 2.0.1
+ flutter_test 0.0.0 from sdk flutter
+ js 0.6.5 (0.6.7 available)
+ lints 2.0.1
+ matcher 0.12.13 (0.12.14 available)
+ material_color_utilities 0.2.0
+ meta 1.8.0 (1.9.0 available)
+ path 1.8.2 (1.8.3 available)
+ sky_engine 0.0.99 from sdk flutter
+ source_span 1.9.1
+ stack_trace 1.11.0
+ stream_channel 2.1.1
+ string_scanner 1.2.0
+ term_glyph 1.2.1
+ test_api 0.4.16 (0.4.18 available)
+ vector_math 2.1.4
Changed 24 dependencies in prgh!
Wrote 127 files.
All done!
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider:
https://www.youtube.com/c/flutterdev
In order to run your application, type:
$ cd prgh
$ flutter run
Your application code is in prgh/lib/main.dart.
My question is : what does the + lines mean?. is there anything i'm supposed to do?.
these are the dependencies/packages that I think updated in it's latest version!

SDK in pubspec.yaml not same as in flutter --version

I'm trying to set environment sdk version to a higher number but it says that my current SDK is as seen below:
The current Dart SDK version is 2.14.4.
Because demo_app_1 requires SDK version >=2.16.0 <3.0.0, version solving failed.
pub get failed (1; Because demo_app_1 requires SDK version >=2.16.0 <3.0.0, version solving failed.)
exit code 1
When i run flutter --version i get the following:
Flutter 3.1.0-0.0.pre.854 • channel master • https://github.com/flutter/flutter.git
Framework • revision ec20ea80ad (17 hours ago) • 2022-05-21 16:28:06 -0400
Engine • revision 1bfe551d6b
Tools • Dart 2.18.0 (build 2.18.0-142.0.dev) • DevTools 2.13.1
Any help would be much appreciated. Thanks.
See you're confusing two things.
The dart SDK version that's mentioned in pubspec.yaml is for the 'dart'
version to be used in the project, not the flutter version.
Important to note that every dart version is compatible with a corresponding flutter version. The dependency can be loose though.
So in your case Flutter 3.1.0-0.0.pre.854 is the flutter version and 2.18.0 is the dart version. This shows that your flutter 3.1 is compatible with dart 2.18 and is installed, but your project uses 2.14.4
You can check the available list from flutter SDK releases
The problem is that demo_app_1 requires an SDK version >= (higher or equal) 2.16.0 but < (below) 3.0.0. The version you have installed is 3.1.0, which does not fulfill the requirement.
You have two options:
Change your flutter installation version
flutter downgrade <version>
flutter doctor
Change the required SDK version in your pubspec.yaml
Change the environment->sdk value
flutter pub get
After that, the issue should be resolved.
Run flutter downgrade 3.0.0 and check if solved

Flutter locked on old pods

I am unable to get the Flutter project to update to the latest available pods for Flutter and Firebase Plugins. I have tried deleting the pods folder and clearing flutter build cache and pod cache.
My Flutter version is:
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.6 19G2021, locale en-CA)
Output of pod outdated:
Updating spec repo `trunk`
CocoaPods 1.10.0.rc.1 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.10.0.rc.1
Analyzing dependencies
The color indicates what happens when you run `pod update`
<green> - Will be updated to the newest version
<blue> - Will be updated, but not to the newest version because of specified version in Podfile
<red> - Will not be updated because of specified version in Podfile
The following pod updates are available:
- abseil 0.20200225.0 -> (unused) (latest version 1.20200225.0)
- BoringSSL-GRPC 0.0.7 -> 0.0.7 (latest version 0.0.12)
- Firebase 6.26.0 -> (unused) (latest version 6.32.2)
- FirebaseAnalytics 6.6.0 -> 6.6.0 (latest version 6.8.2)
- FirebaseAuth 6.5.3 -> 6.5.3 (latest version 6.9.1)
- FirebaseCore 6.7.2 -> 6.7.2 (latest version 6.10.2)
- FirebaseCoreDiagnostics 1.5.0 -> 1.5.0 (latest version 1.6.0)
- FirebaseFirestore 1.15.0 -> 1.15.0 (latest version 1.17.1)
- FirebaseInstallations 1.3.0 -> 1.3.0 (latest version 1.7.0)
- Flutter 1.0.0 -> 1.0.0 (latest version 1.20.0)
- GoogleAppMeasurement 6.6.0 -> 6.6.0 (latest version 6.8.2)
- GoogleDataTransport 7.2.0 -> 7.2.0 (latest version 7.3.0)
- gRPC-C++ 1.28.2 -> 1.28.2 (latest version 1.32.0)
- gRPC-Core 1.28.2 -> 1.28.2 (latest version 1.32.0)
- nanopb 1.30905.0 -> 1.30905.0 (latest version 1.30906.0)
- Purchases 3.4.0 -> 3.4.0 (latest version 3.7.1)
- PurchasesHybridCommon 1.2.0 -> 1.2.0 (latest version 1.4.0)
I think there's a possibility that your cocopods repo is out of date.
Try the below steps
1. Check whether the dependency versions are correct or not
2. flutter clean
3. pod repo update
4. delete /ios/Pods/ and /ios/Podfile.lock

Flutter will not build on iOS with Firebase

I am not a very experienced developer. I have run against the following error and can't figure out how to get around it.
Steps already taken:
Wipe iOS folder and replace with iOS folder from new project.
Insert GoogleService-Info.plist file to runner/runner using XCode
pod install from the command line
pod update from the command line
flutter clean
flutter run -v from the command line
This is the output portion with error:
Error output from Xcode build:
↳
[ +1 ms] ** BUILD FAILED **
The following build commands failed:
CompileC
/Users/shannongalway/Library/Developer/Xcode/DerivedData/Runner-gujmunagyejhsgfssbevzrusvdkc/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/firebase_core
.build/Objects-normal/x86_64/FirebaseCorePlugin.o
/Users/shannongalway/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.0+9/ios/Classes/FirebaseCorePlugin.m normal x86_64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
[ +1 ms] Xcode's output:
↳
[ +74 ms] Build settings from command line:
ARCHS = x86_64
BUILD_DIR = /Users/shannongalway/IdeaProjects/carlinehound/build/ios
COMPILER_INDEX_STORE_ENABLE = NO
FLUTTER_SUPPRESS_ANALYTICS = true
SCRIPT_OUTPUT_STREAM_FILE = /var/folders/bv/50ls2w0n1tl136bfb5xpp_hw0000gn/T/flutter_build_log_pipe.lhBeoU/pipe_to_stdout
SDKROOT = iphonesimulator13.1
VERBOSE_SCRIPT_LOGGING = YES
note: Using new build system
note: Planning build
note: Constructing build description
WriteAuxiliaryFile
ProcessInfoPlistFile
/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/firebase_analytics/firebase_analytics.framework/Info.plist
/Users/shannongalway/IdeaProjects/carlinehound/ios/Pods/Target\ Support\ Files/firebase_analytics/firebase_analytics-Info.plist (in target
'firebase_analytics' from project 'Pods')
cd /Users/shannongalway/IdeaProjects/carlinehound/ios/Pods
builtin-infoPlistUtility /Users/shannongalway/IdeaProjects/carlinehound/ios/Pods/Target\ Support\
Files/firebase_analytics/firebase_analytics-Info.plist -producttype com.apple.product-type.framework -expandbuildsettings -format binary -platform
iphonesimulator -o
/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/firebase_analytics/firebase_analytics.framework/Info.plist
CompileC
/Users/shannongalway/Library/Developer/Xcode/DerivedData/Runner-gujmunagyejhsgfssbevzrusvdkc/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulat
or/firebase_analytics.build/Objects-normal/x86_64/FirebaseAnalyticsPlugin.o
/Users/shannongalway/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-5.0.2/ios/Classes/FirebaseAnalyticsPlugin.m normal
x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'firebase_analytics' from project 'Pods')
cd /Users/shannongalway/IdeaProjects/carlinehound/ios/Pods
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios8.0-simulator
-fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -gmodules
-fmodules-cache-path=/Users/shannongalway/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400
-fmodules-prune-after=345600
-fbuild-session-file=/Users/shannongalway/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation
-fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module
-fmodule-name=firebase_analytics -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes
-Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars
-Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch
-Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized
-Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion
-Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof
-Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1
-DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.1.sdk -fasm-blocks -fstrict-aliasing
-Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes
-Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote
/Users/shannongalway/Library/Developer/Xcode/DerivedData/Runner-gujmunagyejhsgfssbevzrusvdkc/Build/Intermediates.noindex/Pods.build/Debug-iphonesim
ulator/firebase_analytics.build/firebase_analytics-generated-files.hmap
-I/Users/shannongalway/Library/Developer/Xcode/DerivedData/Runner-gujmunagyejhsgfssbevzrusvdkc/Build/Intermediates.noindex/Pods.build/Debug-iphones
imulator/firebase_analytics.build/firebase_analytics-own-target-headers.hmap
-I/Users/shannongalway/Library/Developer/Xcode/DerivedData/Runner-gujmunagyejhsgfssbevzrusvdkc/Build/Intermediates.noindex/Pods.build/Debug-iphones
imulator/firebase_analytics.build/firebase_analytics-all-non-framework-target-headers.hmap -ivfsoverlay
/Users/shannongalway/Library/Developer/Xcode/DerivedData/Runner-gujmunagyejhsgfssbevzrusvdkc/Build/Intermediates.noindex/Pods.build/Debug-iphonesim
ulator/firebase_analytics.build/all-product-headers.yaml -iquote
/Users/shannongalway/Library/Developer/Xcode/DerivedData/Runner-gujmunagyejhsgfssbevzrusvdkc/Build/Intermediates.noindex/Pods.build/Debug-iphonesim
ulator/firebase_analytics.build/firebase_analytics-project-headers.hmap
-I/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/firebase_analytics/include
-I/Users/shannongalway/IdeaProjects/carlinehound/ios/Pods/Headers/Public
-I/Users/shannongalway/Library/Developer/Xcode/DerivedData/Runner-gujmunagyejhsgfssbevzrusvdkc/Build/Intermediates.noindex/Pods.build/Debug-iphones
imulator/firebase_analytics.build/DerivedSources-normal/x86_64
-I/Users/shannongalway/Library/Developer/Xcode/DerivedData/Runner-gujmunagyejhsgfssbevzrusvdkc/Build/Intermediates.noindex/Pods.build/Debug-iphones
imulator/firebase_analytics.build/DerivedSources/x86_64
-I/Users/shannongalway/Library/Developer/Xcode/DerivedData/Runner-gujmunagyejhsgfssbevzrusvdkc/Build/Intermediates.noindex/Pods.build/Debug-iphones
imulator/firebase_analytics.build/DerivedSources
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/firebase_analytics
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/BoringSSL-GRPC
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/FirebaseCore
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/FirebaseCoreDiagnostics
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/FirebaseFirestore
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/FirebaseInstanceID
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/GoogleDataTransport
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/GoogleDataTransportCCTSupport
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/GoogleUtilities
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/Protobuf
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/gRPC-C++
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/gRPC-Core
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/leveldb-library
-F/Users/shannongalway/IdeaProjects/carlinehound/build/ios/Debug-iphonesimulator/nanopb
-F/Users/shannongalway/IdeaProjects/carlinehound/ios/.symlinks/flutter/ios
-F/Users/shannongalway/IdeaProjects/carlinehound/ios/Pods/FirebaseAnalytics/Frameworks
-F/Users/shannongalway/IdeaProjects/carlinehound/ios/Pods/GoogleAppMeasurement/Frameworks -include
/Users/shannongalway/IdeaProjects/carlinehound/ios/Pods/Target\ Support\ Files/firebase_analytics/firebase_analytics-prefix.pch -MMD -MT
dependencies -MF
/Users/shannongalway/Library/Developer/Xcode/DerivedData/Runner-gujmunagyejhsgfssbevzrusvdkc/Build/Intermediates.noindex/Pods.build/Debug-iphonesim
ulator/firebase_analytics.build/Objects-normal/x86_64/FirebaseAnalyticsPlugin.d --serialize-diagnostics
/Users/shannongalway/Library/Developer/Xcode/DerivedData/Runner-gujmunagyejhsgfssbevzrusvdkc/Build/Intermediates.noindex/Pods.build/Debug-iphonesim
ulator/firebase_analytics.build/Objects-normal/x86_64/FirebaseAnalyticsPlugin.dia -c
/Users/shannongalway/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-5.0.2/ios/Classes/FirebaseAnalyticsPlugin.m -o
/Users/shannongalway/Library/Developer/Xcode/DerivedData/Runner-gujmunagyejhsgfssbevzrusvdkc/Build/Intermediates.noindex/Pods.build/Debug-iphonesim
ulator/firebase_analytics.build/Objects-normal/x86_64/FirebaseAnalyticsPlugin.o
flutter doctor
Shannons-Mac:carlinehound shannongalway$ flutter doctor -v
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.6 18G1012, locale en-US)
• Flutter version 1.9.1+hotfix.6 at /Users/shannongalway/development/flutter
• Framework revision 68587a0916 (8 weeks ago), 2019-09-13 19:46:58 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/shannongalway/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.1, Build version 11A1027
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 40.2.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] IntelliJ IDEA Community Edition (version 2019.2.3)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 40.2.4
• Dart plugin version 192.7402
[✓] Connected device (1 available)
• iPhone 11 Pro • C7EAA15B-AD74-4525-B314-3A19D59A9DA4 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-1 (simulator)
• No issues found!
From pubspec.yaml
firebase_core: ^0.4.0+9
cloud_firestore: ^0.12.9+6
firebase_analytics: ^5.0.2
I feel like I have searched just about as hard as I can for a solution, but I am simply walking in circles.
Things to check for:
Did you download GoogleService-Info.plist?
Adding the file GoogleService-Info.plist should be done through xcode by going to Runner > right click the Runner folder > Add Files to "Runner"
The only solution I can find is to actually remove the "strong" attribute in the referenced line of the file.
FIRFirestoreSettings.h:46:1: error: property with 'retain (or strong)' attribute must be of object type
Once this is done the project runs and builds without problems. This method is obviously not a fix, but a pretty hokey workaround. This will comeback.