自从XCode版本10.2(10E125)更新以来,是否还有其他人正在获取此信息,您是否知道解决方案?
最佳答案
最后将其归结为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/