我正在尝试将本机应用程序升级到V0.59.8,我按照rn-diff repo https://github.com/react-native-community/rn-diff-purge/compare/version/0.57.4...version/0.59.8
的所有步骤进行了操作我的App在Android上运行正常,但是在ios上构建我的App时遇到了一些问题
我从main.m
文件中收到语法错误,甚至没有碰到它
main.m文件:
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
答案 0 :(得分:0)
此错误是由AppDelegate.h上的@end丢失引起的。谢谢@rmaddy