قالب وردپرس درنا توس
Home / IOS Development / ios – error: typedef redefining with different types (& # 39; NSInteger & # 39; (aka & long) long & # 39; enum ACAccountCredentialRenewResult & # 39;)

ios – error: typedef redefining with different types (& # 39; NSInteger & # 39; (aka & long) long & # 39; enum ACAccountCredentialRenewResult & # 39;)



I tried to install reager-native-fbsdk to my React Native app and followed the instructions as mentioned in the library's README.MD and Getting Started with Facebook SDK guide.

I got some error following the path, instead of using pod & # 39; react-native-fbsdk & # 39; which redirects to the library under node_modules, I removed it and let

    pod & # 39; FBSDKCoreKit & # 39;
pod & F39DKLoginKit & # 39;
pod & # 39; FBSDKShareKit & # 39;

Now I get the following errors that cause my building to fail. Unable to find out what the problem is.

  error: typedef redefining with different types (& # 39; NSInteger & # 39; (aka & long) long & # 39; enum ACAccountCredentialRenewResult & # 39;)
. /Objects-normal/x86_64/_FBSDKLoginRecoveryAttempter.o FBSDKLoginKit / FBSDKLoginKit / FBSDKLoginKit / Intern / _FBSDKLoginRecoveryAttempter.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1
_0.compiler.compilers.llvm.clang.1_0.compiler.ll.html cd / Users / admin / MyApp / Ios / Pods export LANG = en_US.US-ASCII export PATH = "/ Applications / Xcode.app / Content / Developer / Platformer / iPhoneSimulator.platform / Developer / usr / bin: /Applications/Xcode.app/Contents/Developer/usr/bin: / usr / local / bin: / usr / bin: / bin: / usr / sbin: / sbin " /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length = 0 -fdiagnostics-show-note-include-stack -fmacro backtrace -limit = 0 -std = gnu11 -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path = / Users / admin / Library / Developer / Xcode / DerivedData / ModuleCache.noindex -fmodules-prune-interval = 86400 - fmodules-prune-after = 345600 -fbuild-session-file = / Users / admin / Library / Developer / Xcode / DerivedData / ModuleCache.noindex / Session.moduleevalidation -fmodules-validate-once per build -Wno-trigraphs -fascas- strings -O0 -fno-common -Wno-missing-field-initiators -Wno-missing-prototypes -Werror = return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic properties -Werror = discontinued-objc -isa-use - Wno-objc interface-ivars -Werror = objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-keep-yourself -Wtplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused -p arameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -White-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno- four-char-constants -Wno conversion -Wonstant-conversion -Wint-conversion - Wbool conversion -Wenum conversion -Wno-float conversion -Won-literally-zero-conversion -Wobjc-literal-conversion -Wshort -64- to -32-Winter-Sign -Wno-newline-eof -Wno-selector - Wno-strict-selector-match -Windowsclared-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 / iPhoneSimulator12.1.sdk -fasm-blocker -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min = 8.0g -Wno-sign conversion -Winfinite-recursion -Wcomma -Wblock-capture-auto-leasing -Wstrict-prototypes -Wno-semicolon-b efore-method-body -Wunguarded-availability -fobjc-abi-version = 2 -fobjc-legacy-dispatch-index-store-path / Users / admin / Library / Developer / Xcode / DerivedData / MyApp-drouqzftczwubqdkbisqdreewdmi / Index / DataStore - iquote /Users/admin/Library/Developer/Xcode/DerivedData/MyApp-drouqzftczwubqdkbisqdreewdmi/Build/Intermediates.noindex/Pods.build/ Debug-iphoneimulator / FBSDKLoginKit.build / FBSDKLoginKit-generated-files.hmap -I / Users / admin / Library / Developer / Xcode / DerivedData / MyApp-drouqzftczwubqdkbisqdreewdmi / Build / Intermediates.noindex / Pods.build / Debug-iphoneimulator / FBSDKLoginKit. build / FBSDKLoginKit-own-target-headers.hmap -I / Users / admin / Library / Developer / Xcode / DerivedData / MyApp-drouqzftczwubqdkbisqdreewdmi / Construction / Intermediates.noindex / Pods.build / Debug-iphoneimulator / FBSDKLoginKit.build / FBSDKLoginKit all-non-framework-target-headers.hmap -ivsoverlay /Users/admin/Library/Developer/Xcode/DerivedData/MyApp-drouqzftczwubqdkbisqdreewdmi/Build/Intermediates.noindex/Pods.build/all-product-headers.yaml -iquote/ users / admin / Library / Developer / Xcode / DerivedData / MyApp-drouqzftczwubqdkbisqdreewdmi / Build / Not rmediates.noindex / Pods.build / Debug-iphoneimulator / FBSDKLoginKit.build / FBSDKLoginKit-project-headers.hmap -I / Users / admin / Library / Developer / Xcode / DerivedData / MyApp-drouqzftczwubqdkbisqdreewdmi / Build / Products / Debug-iphoneimulator / FBSDKLoginKit / include -I / Users / admin / MyApp / Ios / Pods / Headers / Private -I / Users / admin / MyApp / Ios / Pods / admin / MyApp / Ios / Pods / Headers / Private / FBSDKLoginKi t -I / Users / admin / MyApp / Ios / Pods / Headers / Public / MyApp / Ios / Pods / Headers / Public / Bolts -I / Users / admin / MyApp / Ios / Pods / Headers / Public / FBSDKCoreKit -I / Users / admin / MyApp / Ios / Pods / Headers / Public / FBSDKLoginKit -I / Users / admin / Library / Developer / Xcode / DerivedData / MyApp-drouqzftczwubqdkbisqdreewdmi / Construction / Intermediates.noindex / Pods.build / Debug-iphoneimulator / FBSDKLoginKit. build / DerivedSources / x86_64 -I / Users / admin / Library / Developer / Xcode / DerivedData / MyApp-drouqzftczwubqdkbisqdreewdmi / Build / Intermediates.noindex / Pods.build / Debug-iphoneimulator / FBSDKLoginKit.build / DerivedSources -F / Users / admin / Library / Developer / Xcode / DerivedData / MyApp-dr ouqzftczwubqdkbisqdreewdmi / Build / Products / Debug-iphoneimulator / FBSDKLoginKit -include / Users / admin / MyApp / Ios / Pods / Target t -MT dependent eat -MF / Users / admin / Library /Developer/Xcode/DerivedData/MyApp-drouqzftczwubqdkbisqdreewdmi/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKLoginKit.build/Objects-normal/x86_64/_FBSDKLoginRecoveryAttempter.d - serialize diagnostics / Users / admin / Library / Developer / Xcode / DerivedData / MyApp-drouqzftczwubqdkbisqdreewdmi / Construction / Intermediates.noindex / Pods.build / Debug-iphoneimulator / FBSDKLoginKit.build / Objects-normal / x86_64 / _FBSDKLoginRecoveryAttempter.dia -c / Users / admin / MyApp / ios / Pods / FBSDKLoginKit / FBSDKLoginKit / FBSDKLoginKit / Intern / _FBSDKLoginRecoveryAttempter.m -o /Users/admin/Library/Developer/Xcode/DerivedData/MyApp-drouqzftczwubqdkbisqdreewdmi/Byild/Intermediates.noindex/Pods.build/Debug iphone simulator / FBSDKLoginKit.build / Objects- normal / x86_64 / _FBSDKLoginRecoveryAttempter.o In the file is included from /Users/admin/MyApp/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.m:21: In the file is included from /Users/admin/MyApp/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginKit+Internal.h:19: In the file is included from /Users/admin/MyApp/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit.h:27: In the file is included from /Users/admin/MyApp/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h:23: /Users/admin/MyApp/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManager.h:23:19: error: typedef redefining with different types (& # 39; NSInteger & # 39; (aka & long) 39;) vs enum ACAccountCredentialRenewResult & # 39;) type manager NSInteger ACAccountCredentialRenewResult; ^ In the & # 39; Accounts & # 39; imported from /Users/admin/MyApp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSystemAccountStoreAdapter.h:19: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h:11:28: note: previous the definition is here typedef NS_ENUM (NSInteger, ACAccountCredentialRenewResult) { ^ 1 error generated. Environment

Environment: OS: MacOS 10.14 Node: 12.1.0 Yarn: 1.16.0 npm: 6.9.0 Watchman: 4.9.0 Xcode: Xcode 10.1 Build version 10B61 Android Studio: 3.1 AI-173.4819257

Packages: (wanted => installed) respond: 16.2.0 => 16.2.0 Reager-native: 0.53.3 => 0.53.3


Source link