React-Native ios - ":CFBundleIdentifier",不存在

时间:2017-09-06 05:18:18

标签: ios react-native

运行react-native run-ios

时出现此错误

我尝试了几种我可以在网上找到的解决方案,包括

https://github.com/facebook/react-native/issues/14969

https://github.com/facebook/react-native/issues/12737

并且所有这些都不适合我

任何线索?我被困了好几天..

这是日志:

/Users/myName/Documents/work/myApp.com/native_app/ios/myAppNative/AppDelegate.m:31:1: error: missing '@end'
#import <FBSDKCoreKit/FBSDKCoreKit.h>
^
/Users/myName/Documents/work/myApp.com/native_app/ios/myAppNative/AppDelegate.m:16:1: note: implementation started here
@implementation AppDelegate
^
/Users/myName/Documents/work/myApp.com/native_app/ios/myAppNative/AppDelegate.m:33:1: error: missing context for method declaration
- (BOOL)application:(UIApplication *)application
^
/Users/myName/Documents/work/myApp.com/native_app/ios/myAppNative/AppDelegate.m:42:1: error: missing context for method declaration
- (BOOL)application:(UIApplication *)application
^
/Users/myName/Documents/work/myApp.com/native_app/ios/myAppNative/AppDelegate.m:56:1: error: missing context for method declaration
- (void)applicationDidBecomeActive:(UIApplication *)application {
^
/Users/myName/Documents/work/myApp.com/native_app/ios/myAppNative/AppDelegate.m:60:1: error: '@end' must appear in an Objective-C context
@end
^
5 errors generated.



** BUILD FAILED **


The following build commands failed:

    CompileC build/Build/Intermediates/myAppNative.build/Debug-iphonesimulator/myAppNative.build/Objects-normal/x86_64/AppDelegate.o myAppNative/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/myAppNative.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/myAppNative.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

0 个答案:

没有答案