只是好奇自 XCode 版本 10.2 (10E125) 更新以来是否还有其他人得到这个并知道修复?
- macOS Mojave 10.14.3 (18D109)
- “ native react ”:“0.57.0”
- 节点 v11.6.0
- npm: 6.5.0-next.0
- yarn :1.14.0-20181221.0548
最佳答案
最后归结为 RCTLinkingManager.h
。
我用非空断言修改了它,如下所示:
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* 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 <React/RCTEventEmitter.h>
@interface RCTLinkingManager : RCTEventEmitter
+ (BOOL)application:(UIApplication *_Nonnull)app
openURL:(NSURL *_Nonnull)URL
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *_Nonnull)options;
+ (BOOL)application:(UIApplication *_Nonnull)application
openURL:(NSURL *_Nonnull)URL
sourceApplication:(NSString *_Nonnull)sourceApplication
annotation:(id _Nonnull )annotation;
+ (BOOL)application:(UIApplication *_Nonnull)application
continueUserActivity:(NSUserActivity *_Nonnull)userActivity
restorationHandler:(void (^_Nonnull)(NSArray * __nullable))restorationHandler;
@end
现在构建成功。
关于ios - RCTLinking > 问题 > 指针缺少可空性类型说明符(_Nonnull、_Nullable 或 _Null_unspecified),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55376424/