Open RamanPndy opened 3 years ago
@RamanPndy You're the same problem as me. I solved it like this. You should try this. Go to that address over there. https://github.com/mxcl/PromiseKit/issues/1059
Hey, @RamanPndy I tried the solution that @LeeKyungJoon but had no success. I am still getting the Settings.swift and AccessToken.swift build errors. Did you try something else?
@neyshaborrero what is your xcode version ?? mine Xcode version is 10.3 and xcodebuild version is 10G8. it's might be because of xcode version issue. you can try the solution as @LeeKyungJoon suggested. otherwise, you can manually make the changes in AccessToken.swift and Settings.swift where the error is coming. in my case, it is missing the return statement which I have added to pass the build.
Guys, just to let you know, I was facing the same issue, tried the solution pointed by @LeeKyungJoo and it worked like a charm.
For anyone else fighting with this, I tried the empty Swift file + Bridging Header approach but was still getting compiler errors.
I ended up manually editing the few files that Xcode was complaining about (inside the package itself) and adding the missing return statements, and it's building fine now!
Still leaving the swift file / bridging header in there just in case it's adding some magical work-sauce, but kinda seems like Facebook just needs to update the package and add a few return statements 🤷♂️
For anyone else fighting with this, I tried the empty Swift file + Bridging Header approach but was still getting compiler errors.
I ended up manually editing the few files that Xcode was complaining about (inside the package itself) and adding the missing return statements, and it's building fine now!
Still leaving the swift file / bridging header in there just in case it's adding some magical work-sauce, but kinda seems like Facebook just needs to update the package and add a few return statements 🤷♂️
Please can you help me about the missing statement inside the swift file cause I have no idea. thanks
Please help us!!!
🐛 Bug Report
I did all the prerequisite steps required to set up IOS app to allow Facebook to login. First of all, react native uses Objective C but there is no documentation around for the same to integrate but anyway I found one workaround to setup in AppDelegate.m file. but when I run react-native run-ios it shows below errors:
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target: FBSDKCoreKit) cd /Users/ramanpandey/Desktop/fbiosapp/ios/Pods export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name FBSDKCoreKit -Onone -enable-batch-mode -enforce-exclusivity=checked -DDEBUG -D COCOAPODS -import-underlying-module -Xcc -fmodule-map-file=/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKCoreKit.modulemap -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk -target x86_64-apple-ios8.0-simulator -g -module-cache-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Index/DataStore -swift-version 5 -I /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -F /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -c -j8 /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/AccessToken.swift /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/Permission.swift /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/Settings.swift -output-file-map /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/FBSDKCoreKit-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/FBSDKCoreKit.swiftmodule -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/FBSDKCoreKit-generated-files.hmap -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/FBSDKCoreKit-own-target-headers.hmap -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/FBSDKCoreKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/FBSDKCoreKit-project-headers.hmap -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/include -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/Headers/Private -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/Headers/Private/FBSDKCoreKit -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/Headers/Public -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/DerivedSources-normal/x86_64 -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/DerivedSources/x86_64 -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/DerivedSources -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DFBSDKCOCOAPODS=1 -emit-objc-header -emit-objc-header-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/FBSDKCoreKit-Swift.h -working-directory /Users/ramanpandey/Desktop/fbiosapp/ios/Pods
CompileSwift normal x86_64 /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/AccessToken.swift (in target: FBSDKCoreKit) cd /Users/ramanpandey/Desktop/fbiosapp/ios/Pods /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/AccessToken.swift /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/Permission.swift /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/Settings.swift -emit-module-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/AccessToken\~partial.swiftmodule -emit-module-doc-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/AccessToken\~partial.swiftdoc -serialize-diagnostics-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/AccessToken.dia -emit-dependencies-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/AccessToken.d -emit-reference-dependencies-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/AccessToken.swiftdeps -target x86_64-apple-ios8.0-simulator -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk -I /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -F /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -enable-testing -g -import-underlying-module -module-cache-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -Onone -D DEBUG -D COCOAPODS -serialize-debugging-options -Xcc -working-directory -Xcc /Users/ramanpandey/Desktop/fbiosapp/ios/Pods -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKCoreKit.modulemap -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/FBSDKCoreKit-generated-files.hmap -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/FBSDKCoreKit-own-target-headers.hmap -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/FBSDKCoreKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/FBSDKCoreKit-project-headers.hmap -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/include -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/Headers/Private -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/Headers/Private/FBSDKCoreKit -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/Headers/Public -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/DerivedSources-normal/x86_64 -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/DerivedSources/x86_64 -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/DerivedSources -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DFBSDKCOCOAPODS=1 -module-name FBSDKCoreKit -o /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/AccessToken.o -index-store-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Index/DataStore -index-system-modules /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/AccessToken.swift:29:5: warning: result of 'Set' initializer is unused
Set(permissions.map { Permission(stringLiteral: $0) })
^ ' initializer is unused
Set( declinedPermissions.map { Permission(stringLiteral: $0) })
^ ' initializer is unused
Set(__expiredPermissions.map { Permission(stringLiteral: $0) })
^ '
}
^
/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/AccessToken.swift:37:3: error: missing return in a function expected to return 'Set'
}
^
/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/AccessToken.swift:44:3: error: missing return in a function expected to return 'Set'
}
^
/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/AccessToken.swift:52:3: error: missing return in a function expected to return 'Bool'
}
^
~~~~~~~~~~~~~ /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/AccessToken.swift:36:5: warning: result of 'Set~~~~~~~~~~~~~ /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/AccessToken.swift:43:5: warning: result of 'Set~~~~~~~~~~~~/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/AccessToken.swift:30:3: error: missing return in a function expected to return 'SetCompileSwift normal x86_64 /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/Settings.swift (in target: FBSDKCoreKit) cd /Users/ramanpandey/Desktop/fbiosapp/ios/Pods /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/AccessToken.swift /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/Permission.swift -primary-file /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/Settings.swift -emit-module-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/Settings\~partial.swiftmodule -emit-module-doc-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/Settings\~partial.swiftdoc -serialize-diagnostics-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/Settings.dia -emit-dependencies-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/Settings.d -emit-reference-dependencies-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/Settings.swiftdeps -target x86_64-apple-ios8.0-simulator -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk -I /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -F /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -enable-testing -g -import-underlying-module -module-cache-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -Onone -D DEBUG -D COCOAPODS -serialize-debugging-options -Xcc -working-directory -Xcc /Users/ramanpandey/Desktop/fbiosapp/ios/Pods -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKCoreKit.modulemap -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/FBSDKCoreKit-generated-files.hmap -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/FBSDKCoreKit-own-target-headers.hmap -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/FBSDKCoreKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/FBSDKCoreKit-project-headers.hmap -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/include -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/Headers/Private -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/Headers/Private/FBSDKCoreKit -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/Pods/Headers/Public -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/DerivedSources-normal/x86_64 -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/DerivedSources/x86_64 -Xcc -I/Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/DerivedSources -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DFBSDKCOCOAPODS=1 -module-name FBSDKCoreKit -o /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBSDKCoreKit.build/Objects-normal/x86_64/Settings.o -index-store-path /Users/ramanpandey/Desktop/fbiosapp/ios/build/fbiosapp/Index/DataStore -index-system-modules /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/Settings.swift:39:7: warning: result of 'Set' initializer is unused
Set(Settings.__loggingBehaviors.map { LoggingBehavior(rawValue: $0) })
^ '
}
^
~~~~~~~~~~~~~~~ /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/Settings.swift:40:5: error: missing return in a function expected to return 'SetBUILD FAILED
The following build commands failed: CompileSwift normal x86_64 /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/AccessToken.swift CompileSwift normal x86_64 /Users/ramanpandey/Desktop/fbiosapp/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Swift/Settings.swift CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (3 failures)
Please, someone, help me to resolve this issue.
To Reproduce
(BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions { [[FBSDKApplicationDelegate sharedInstance] application:application didFinishLaunchingWithOptions:launchOptions];
RCTBridge bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; RCTRootView rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"fbiosapp" initialProperties:nil];
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; UIViewController *rootViewController = [UIViewController new]; rootViewController.view = rootView; self.window.rootViewController = rootViewController; [self.window makeKeyAndVisible]; [FIRApp configure]; return YES; }
(NSURL )sourceURLForBridge:(RCTBridge )bridge {
if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
endif
}
(void)applicationDidBecomeActive:(UIApplication *)application { [FBSDKAppEvents activateApp]; }
(BOOL)application:(UIApplication )app openURL:(NSURL )url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options { if ([[FBSDKApplicationDelegate sharedInstance] application:app openURL:url options:options]) { return YES; } if ([RNBranch application:app openURL:url options:options]) { // do other deep link routing for the Facebook SDK, Pinterest SDK, etc if ([RCTLinkingManager application:app openURL:url options:options]){ return YES; } } return YES; }
Please let me know if any further information is required.
Expected Behavior
Build should be successful and the app should be visible and stable in the simulator.
Code Example
Environment
info Fetching system and libraries information... System: OS: macOS Mojave 10.14.6 CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz Memory: 54.25 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.16.0 - /usr/local/bin/node Yarn: 1.17.3 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm SDKs: iOS SDK: Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3 Android SDK: API Levels: 25, 28 Build Tools: 28.0.3, 29.0.0 System Images: android-25 | Intel x86 Atom_64, android-25 | Google Play Intel x86 Atom IDEs: Android Studio: 3.4 AI-183.6156.11.34.5692245 Xcode: 10.3/10G8 - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5 npmGlobalPackages: create-react-native-app: 2.0.2 react-native-cli: 2.0.1