由于登录EXUpdates / Expo -updates的问题,Expo快速通道构建失败



我在SDK 46的expo管理工作流上构建IOS应用程序时得到此错误消息。错误出现在日志的末尾,在第716行:由于"内部"保护级别,"Logger"初始化器无法访问。使用最新版本(0.15.6)安装expo-updates包。

expo doctor命令显示工程没有任何问题。


Compiling expo-eas-client Pods/EASClient » EASClient-dummy.m
› Packaging expo-eas-client Pods/EASClient » libEASClient.a
› Executing expo-eas-client Pods/EASClient » Copy generated compatibility header
› Executing expo-updates Pods/EXUpdates » [CP-User] Generate app.manifest for expo-updates

❌  (node_modules/expo-updates/ios/EXUpdates/Logging/UpdatesLogger.swift:15:24)
13 |   public static let EXPO_UPDATES_LOG_CATEGORY = "expo-updates"
14 | 
> 15 |   private let logger = Logger(category: UpdatesLogger.EXPO_UPDATES_LOG_CATEGORY, options: [.logToOS, .logToFile])
|                        ^ 'Logger' initializer is inaccessible due to 'internal' protection level
16 | 
17 |   // MARK: - Public logging functions
18 | 

❌  (node_modules/expo-updates/ios/EXUpdates/Logging/UpdatesLogger.swift:15:91)
13 |   public static let EXPO_UPDATES_LOG_CATEGORY = "expo-updates"
14 | 
> 15 |   private let logger = Logger(category: UpdatesLogger.EXPO_UPDATES_LOG_CATEGORY, options: [.logToOS, .logToFile])
|                                                                                           ^ extra argument 'options' in call
16 | 
17 |   // MARK: - Public logging functions
18 | 

❌  (node_modules/expo-updates/ios/EXUpdates/Logging/UpdatesLogger.swift:15:93)
13 |   public static let EXPO_UPDATES_LOG_CATEGORY = "expo-updates"
14 | 
> 15 |   private let logger = Logger(category: UpdatesLogger.EXPO_UPDATES_LOG_CATEGORY, options: [.logToOS, .logToFile])
|                                                                                             ^ reference to member 'logToOS' cannot be resolved without a contextual type
16 | 
17 |   // MARK: - Public logging functions
18 | 

❌  (node_modules/expo-updates/ios/EXUpdates/Logging/UpdatesLogger.swift:15:103)
13 |   public static let EXPO_UPDATES_LOG_CATEGORY = "expo-updates"
14 | 
> 15 |   private let logger = Logger(category: UpdatesLogger.EXPO_UPDATES_LOG_CATEGORY, options: [.logToOS, .logToFile])
|                                                                                                       ^ reference to member 'logToFile' cannot be resolved without a contextual type
16 | 
17 |   // MARK: - Public logging functions
18 | 

❌  (node_modules/expo-updates/ios/EXUpdates/Logging/UpdatesLogReader.swift:15:32)
13 | public class UpdatesLogReader: NSObject {
14 |   private let serialQueue = DispatchQueue(label: "dev.expo.updates.logging.reader")
> 15 |   private let logPersistence = PersistentFileLog(category: UpdatesLogger.EXPO_UPDATES_LOG_CATEGORY)
|                                ^ cannot find 'PersistentFileLog' in scope
16 | 
17 |   /**
18 |    Get expo-updates logs newer than the given date
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸   CompileSwift normal arm64 (in target 'EXUpdates' from project 'Pods')
▸   CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'EXUpdates' from project 'Pods')
▸ (2 failures)
2023-01-06 08:55:22.238 xcodebuild[4410:14072] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2023-01-06 08:55:22.238 xcodebuild[4410:14072] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2023-01-06 08:55:22.327 xcodebuild[4410:14072] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}
2023-01-06 08:55:22.328 xcodebuild[4410:14072] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts
2023-01-06 08:55:22.328 xcodebuild[4410:14072] XType: unable to make a connection to the font daemon!
2023-01-06 08:55:22.328 xcodebuild[4410:14072] XType: XTFontStaticRegistry is enabled as fontd is not available.
** ARCHIVE FAILED **
The following build commands failed:
CompileSwift normal arm64 (in target 'EXUpdates' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'EXUpdates' from project 'Pods')
(2 failures)
Exit status: 65
+-------------+-------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.206.1                 |
| sdk         | iPhoneOS15.5.sdk        |
+-------------+-------------------------+

问题已升级到Expo SDK 47解决。