Hello!
Problem: AppDelegate.m : Use of undeclared identifier 'AppCenterReactNative'; Use of undeclared identifier 'AppCenterReactNativeAnalytics'; Use of undeclared identifier 'AppCenterReactNativeCrashes' in React Native 0.62.2 (with CocoaPods) in Release Scheme on iOS
#import <AppCenterReactNative.h>
#import <AppCenterReactNativeAnalytics.h>
#import <AppCenterReactNativeCrashes.h>
[AppCenterReactNative register];
[AppCenterReactNativeAnalytics registerWithInitiallyEnabled:true];
[AppCenterReactNativeCrashes registerWithAutomaticProcessing];
Build Failed
Which version of the App Center SDK are you using?
"appcenter": "3.1.0",
"appcenter-analytics": "3.1.0",
"appcenter-crashes": "3.1.0",
"react": "16.11.0",
"react-native": "0.62.2"
Run the following command and paste the output below: react-native info
System:
OS: macOS 10.15.4
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 74.47 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.18.1 - /usr/local/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 28, 29, 30
Build Tools: 28.0.3, 29.0.2
System Images: android-28 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6514223
Xcode: 11.5/11E608c - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_222 - /usr/bin/javac
Python: 2.7.15 - /usr/local/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
react-native: Not Found
Place output here
If you're developing for React Native iOS, run the following command and paste the output below: pod --version
Place output here ➜ pod --version
1.9.3
Hi, @gthrm ! Thanks for getting in touch with us!
I try to reproduce this issue following your steps but for me it works as expected.
It can be related to the cache issue. Could you please try to:
Also could you please share your Framework Search Path and build logs.
It didn't work:
> rm -rf ~/Library/Developer/Xcode/DerivedData/*
> rm -rf /Pods && rm Podfile.lock && pod install
> Build from XCode
Framework Search Path:

- $(inherited)
- "${PODS_ROOT}/AppCenter/AppCenter-SDK-Apple/iOS"
- "${PODS_ROOT}/AppCenterReactNativeShared/AppCenterReactNativeShared"
Build logs (only error):
Showing Recent Errors Only
Prepare build
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Build target CocoaAsyncSocket of project Pods with configuration Release
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 5.0, but the range of supported deployment target versions is 8.0 to 13.5.99. (in target 'CocoaAsyncSocket' from project 'Pods')
Build target ExampleP of project ExampleP with configuration Release
CompileC /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/Objects-normal/armv7/AppDelegate.o /Users/redevice/Desktop/ExampleP/ios/ExampleP/AppDelegate.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'ExampleP' from project 'ExampleP')
cd /Users/redevice/Desktop/ExampleP/ios
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target armv7-apple-ios9.0 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/redevice/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/redevice/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 -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -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 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fembed-bitcode-marker -iquote /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/ExampleP-generated-files.hmap -I/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/ExampleP-own-target-headers.hmap -I/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/ExampleP-all-non-framework-target-headers.hmap -ivfsoverlay /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/all-product-headers.yaml -iquote /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/ExampleP-project-headers.hmap -I/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Products/Release-iphoneos/include -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/CocoaAsyncSocket -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/CocoaLibEvent -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/DoubleConversion -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/FBLazyVector -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/FBReactNativeSpec -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Flipper -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Flipper-DoubleConversion -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Flipper-Folly -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Flipper-Glog -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Flipper-PeerTalk -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Flipper-RSocket -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/FlipperKit -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/OpenSSL-Universal -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/RCTRequired -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/RCTTypeSafety -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/React-Core -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/React-RCTText -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/React-cxxreact -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/React-jsi -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/React-jsinspector -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/ReactCommon -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Yoga -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/YogaKit -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/appcenter-analytics -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/appcenter-core -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/appcenter-crashes -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/glog -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Private/React-Core -I/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/DerivedSources-normal/armv7 -I/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/DerivedSources/armv7 -I/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/DerivedSources -F/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Products/Release-iphoneos -F/Users/redevice/Desktop/ExampleP/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS -F/Users/redevice/Desktop/ExampleP/ios/Pods/AppCenterReactNativeShared/AppCenterReactNativeShared -fmodule-map-file=/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Products/Release-iphoneos/YogaKit/YogaKit.modulemap -fmodule-map-file=/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/yoga/Yoga.modulemap -MMD -MT dependencies -MF /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/Objects-normal/armv7/AppDelegate.d --serialize-diagnostics /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/Objects-normal/armv7/AppDelegate.dia -c /Users/redevice/Desktop/ExampleP/ios/ExampleP/AppDelegate.m -o /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/Objects-normal/armv7/AppDelegate.o
/Users/redevice/Desktop/ExampleP/ios/ExampleP/AppDelegate.m:51:2: error: use of undeclared identifier 'AppCenterReactNative'
[AppCenterReactNative register];
^
/Users/redevice/Desktop/ExampleP/ios/ExampleP/AppDelegate.m:52:2: error: use of undeclared identifier 'AppCenterReactNativeAnalytics'
[AppCenterReactNativeAnalytics registerWithInitiallyEnabled:true];
^
/Users/redevice/Desktop/ExampleP/ios/ExampleP/AppDelegate.m:53:2: error: use of undeclared identifier 'AppCenterReactNativeCrashes'
[AppCenterReactNativeCrashes registerWithAutomaticProcessing];
^
3 errors generated.
CompileC /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/Objects-normal/arm64/AppDelegate.o /Users/redevice/Desktop/ExampleP/ios/ExampleP/AppDelegate.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'ExampleP' from project 'ExampleP')
cd /Users/redevice/Desktop/ExampleP/ios
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios9.0 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/redevice/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/redevice/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 -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -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 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fembed-bitcode-marker -iquote /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/ExampleP-generated-files.hmap -I/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/ExampleP-own-target-headers.hmap -I/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/ExampleP-all-non-framework-target-headers.hmap -ivfsoverlay /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/all-product-headers.yaml -iquote /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/ExampleP-project-headers.hmap -I/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Products/Release-iphoneos/include -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/CocoaAsyncSocket -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/CocoaLibEvent -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/DoubleConversion -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/FBLazyVector -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/FBReactNativeSpec -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Flipper -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Flipper-DoubleConversion -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Flipper-Folly -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Flipper-Glog -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Flipper-PeerTalk -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Flipper-RSocket -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/FlipperKit -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/OpenSSL-Universal -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/RCTRequired -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/RCTTypeSafety -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/React-Core -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/React-RCTText -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/React-cxxreact -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/React-jsi -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/React-jsinspector -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/ReactCommon -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/Yoga -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/YogaKit -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/appcenter-analytics -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/appcenter-core -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/appcenter-crashes -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/glog -I/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Private/React-Core -I/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/DerivedSources-normal/arm64 -I/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/DerivedSources/arm64 -I/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/DerivedSources -F/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Products/Release-iphoneos -F/Users/redevice/Desktop/ExampleP/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS -F/Users/redevice/Desktop/ExampleP/ios/Pods/AppCenterReactNativeShared/AppCenterReactNativeShared -fmodule-map-file=/Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Products/Release-iphoneos/YogaKit/YogaKit.modulemap -fmodule-map-file=/Users/redevice/Desktop/ExampleP/ios/Pods/Headers/Public/yoga/Yoga.modulemap -MMD -MT dependencies -MF /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/Objects-normal/arm64/AppDelegate.d --serialize-diagnostics /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/Objects-normal/arm64/AppDelegate.dia -c /Users/redevice/Desktop/ExampleP/ios/ExampleP/AppDelegate.m -o /Users/redevice/Library/Developer/Xcode/DerivedData/ExampleP-crgvqhrcgszctregtmeilxkhkmpc/Build/Intermediates.noindex/ExampleP.build/Release-iphoneos/ExampleP.build/Objects-normal/arm64/AppDelegate.o
/Users/redevice/Desktop/ExampleP/ios/ExampleP/AppDelegate.m:51:2: error: use of undeclared identifier 'AppCenterReactNative'
[AppCenterReactNative register];
^
/Users/redevice/Desktop/ExampleP/ios/ExampleP/AppDelegate.m:52:2: error: use of undeclared identifier 'AppCenterReactNativeAnalytics'
[AppCenterReactNativeAnalytics registerWithInitiallyEnabled:true];
^
/Users/redevice/Desktop/ExampleP/ios/ExampleP/AppDelegate.m:53:2: error: use of undeclared identifier 'AppCenterReactNativeCrashes'
[AppCenterReactNativeCrashes registerWithAutomaticProcessing];
^
3 errors generated.
Build target Yoga of project Pods with configuration Release
Build target Flipper-DoubleConversion of project Pods with configuration Release
Build target React-jsinspector of project Pods with configuration Release
Build target Flipper-PeerTalk of project Pods with configuration Release
Build target DoubleConversion of project Pods with configuration Release
Build target glog of project Pods with configuration Release
Build target Flipper-Glog of project Pods with configuration Release
Build target YogaKit of project Pods with configuration Release
Build target Flipper-Folly of project Pods with configuration Release
Build target Folly of project Pods with configuration Release
Build target React-jsi of project Pods with configuration Release
Build target React-cxxreact of project Pods with configuration Release
Build target Flipper-RSocket of project Pods with configuration Release
warning: no rule to process file '/Users/redevice/Desktop/ExampleP/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '/Users/redevice/Desktop/ExampleP/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '/Users/redevice/Desktop/ExampleP/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
Build target Flipper of project Pods with configuration Release
Build target React-jsiexecutor of project Pods with configuration Release
Build target FlipperKit of project Pods with configuration Release
Build target React-Core of project Pods with configuration Release
Build target React-RCTText of project Pods with configuration Release
Build target ReactCommon of project Pods with configuration Release
Build target RCTTypeSafety of project Pods with configuration Release
Build target FBReactNativeSpec of project Pods with configuration Release
Build target React-RCTVibration of project Pods with configuration Release
Build target React-RCTSettings of project Pods with configuration Release
Build target React-RCTNetwork of project Pods with configuration Release
Build target React-RCTLinking of project Pods with configuration Release
Build target React-RCTAnimation of project Pods with configuration Release
Build target React-RCTImage of project Pods with configuration Release
Build target React-RCTBlob of project Pods with configuration Release
Build target React-CoreModules of project Pods with configuration Release
Build target appcenter-core of project Pods with configuration Release
Build target appcenter-crashes of project Pods with configuration Release
Build target appcenter-analytics of project Pods with configuration Release
Build target Pods-ExampleP of project Pods with configuration Release
Build target OpenSSL-Universal of project Pods with configuration Release
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 6.0, but the range of supported deployment target versions is 8.0 to 13.5.99. (in target 'OpenSSL-Universal' from project 'Pods')
Build failed 08.07.2020, 15:29 396.3 seconds
@gthrm thanks for provide additional info. Have you a chance try to reproduce this issue on an empty project and let me know about the results?
Also, you can try to integrate the App Center SDK manually.
This is the data of an empty project, as I wrote above.
Exactly the same problem here! but on "react-native": "0.62.1"
Run the following command and paste the output below: react-native info
System:
OS: macOS 10.15.5
CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
Memory: 434.45 MB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 14.3.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 21, 22, 24, 25, 26, 27, 28
Build Tools: 25.0.1, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.3, 28.0.0, 28.0.3, 29.0.0
System Images: android-19 | Google APIs Intel x86 Atom, android-21 | Google APIs Intel x86 Atom, android-24 | Google Play Intel x86 Atom, android-26 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 11.4.1/11E503a - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_222 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.1 => 0.62.1
npmGlobalPackages:
react-native: Not Found
If you're developing for React Native iOS, run the following command and paste the output below: pod --version
1.9.1
Everything else is exactly the same. Including logs.
Unfortunately, I still can't reproduce it. Could you please clarify it was happening with previous versions of SDK also or only after updating the App Center SDK? Have you a chance try to integrate the App Center SDK manually and tell me about the results?
This exact same thing is happening to me too but ALSO to the CodePush library
Same behavior with only happening in release mode.
I've tried:
RN: 0.62.1
All appcenter stuff: 3.1.0
react-native-code-push: 6.2.1
+1
A few more things:
FIGURED IT OUT.
Thanks to this thread.
I'll show it here, too.
Since React Native started including Flipper by default, it added #if DEBUG in the imports of AppDelegate.m.
If imports are placed below that, they _won't_ be included in the release build.
@AnastasiaKubova I would just recommend adding this caveat into the AppCenter documentation for add those imports, since React Native developers might just be following instructions and won't know where they need to be placed.

Recommendation: change these docs to say "Add these lines to import section ABOVE the #if DEBUG declaration (if present)."

Hello @gthrm ,
I was able to reproduce this issue only when the following lines were added at the end of the _import_ block.
#import <AppCenterReactNative.h>
#import <AppCenterReactNativeAnalytics.h>
#import <AppCenterReactNativeCrashes.h>
But if I place these lines right after #import "AppDelegate.h" then these errors disappear in my case.
Does it work for you?
Thanks
That worked for me because of the solution I pasted above :)
@annie-elequin I see we replied at the same time))))
Hi @gthrm ,
the problem was solved or not for you? Could this issue be closed?
Thanks
@gthrm hey, we haven’t heard from you in a while, have you been able to resolve your issue?
If you have any more questions, please let us know and re-open it.
​
Thank you for using App Center and have a good day!
@annie-elequin , thank you
FIGURED IT OUT.
Thanks to this thread.I'll show it here, too.
Since React Native started including Flipper by default, it added#if DEBUGin the imports of AppDelegate.m.If imports are placed below that, they _won't_ be included in the release build.
@AnastasiaKubova I would just recommend adding this caveat into the AppCenter documentation for add those imports, since React Native developers might just be following instructions and won't know where they need to be placed.
Recommendation: change these docs to say "Add these lines to import section ABOVE the
#if DEBUGdeclaration (if present)."
you just saved my life, client was on the way to kill me. thank you!
An update for someone seeing this and using RN 0.63.x
#if DEBUG has been changed to #ifdef FB_SONARKIT_ENABLED
same logic applies :)
Yes, would be great to add to documentation
Updated docs at https://docs.microsoft.com/en-us/appcenter/sdk/getting-started/react-native
The integration notes on the appcenter.ms will be updated soon.
There were multiple "#ifdef FB_SONARKIT_ENABLED" and "#ifdef DEBUG" for me. (one for calling "InitializeFlipper(application);" and another in a method "sourceURLForBridge")
It wasn't clear to me that I had to add the imports at the "TOP" of the file (where all other imports are), and not in the subsequent "#ifdef" statements. Think the documentation would be better if it includes an example.
Most helpful comment
FIGURED IT OUT.
Thanks to this thread.
I'll show it here, too.
Since React Native started including Flipper by default, it added
#if DEBUGin the imports of AppDelegate.m.If imports are placed below that, they _won't_ be included in the release build.
@AnastasiaKubova I would just recommend adding this caveat into the AppCenter documentation for add those imports, since React Native developers might just be following instructions and won't know where they need to be placed.
Recommendation: change these docs to say "Add these lines to import section ABOVE the

#if DEBUGdeclaration (if present)."