React Native——RnDiffApp
React Native - RnDiffApp
有谁知道这是从哪里来的,存放的目的是什么?
我在文件 android/app/BUCK
的 Android 一侧看到它
android_build_config(
name = "build_config",
package = "com.rndiffapp",
)
android_resource(
name = "res",
package = "com.rndiffapp",
res = "src/main/res",
)
...在 IOS 方面,我到处都看到它(及其引起的问题)...包括 \myAppName\ios\myAppName\AppDelegate.m
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"RnDiffApp"
initialProperties:nil];
我听说 react-native upgrade
在幕后使用 rn-diff-purge
,我想知道是不是我尝试 react-native upgrade
导致了这一切。我想知道是否有办法撤消此操作,因为我在 Xcode 中遇到问题。请参阅下文
No such file or directory: /xxx/myAppName/ios/RnDiffApp/main.m
No such file or directory: /xxx/myAppName/ios/RnDiffApp/AppDelegate.m
我最近在升级失败后遇到过这种情况。查看您的 ios/Podfile 并将 RnDiffApp 的引用更改为 YourAppName。您还可以对可能受影响的其他文件进行全局搜索。就我而言,它只是 Podfile。
更新 Podfile 后,我发现需要以下命令:
cd ios
rm Podfile.lock
pod install
cd ..
有谁知道这是从哪里来的,存放的目的是什么?
我在文件 android/app/BUCK
android_build_config(
name = "build_config",
package = "com.rndiffapp",
)
android_resource(
name = "res",
package = "com.rndiffapp",
res = "src/main/res",
)
...在 IOS 方面,我到处都看到它(及其引起的问题)...包括 \myAppName\ios\myAppName\AppDelegate.m
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"RnDiffApp"
initialProperties:nil];
我听说 react-native upgrade
在幕后使用 rn-diff-purge
,我想知道是不是我尝试 react-native upgrade
导致了这一切。我想知道是否有办法撤消此操作,因为我在 Xcode 中遇到问题。请参阅下文
No such file or directory: /xxx/myAppName/ios/RnDiffApp/main.m
No such file or directory: /xxx/myAppName/ios/RnDiffApp/AppDelegate.m
我最近在升级失败后遇到过这种情况。查看您的 ios/Podfile 并将 RnDiffApp 的引用更改为 YourAppName。您还可以对可能受影响的其他文件进行全局搜索。就我而言,它只是 Podfile。
更新 Podfile 后,我发现需要以下命令:
cd ios
rm Podfile.lock
pod install
cd ..