Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Garabed96/238d1f9744f0cb528d7a3184963a7455 to your computer and use it in GitHub Desktop.
Save Garabed96/238d1f9744f0cb528d7a3184963a7455 to your computer and use it in GitHub Desktop.
TerminalError
npx expo run:ios
› Planning build
› Executing react-native Pods/FBReactNativeSpec » [CP-User] Generate Specs
❌ (node_modules/expo-modules-core/ios/Swift/DynamicTypes/DynamicEnumType.swift:7:22)
5 | */
6 | internal struct DynamicEnumType: AnyDynamicType {
> 7 | let innerType: any Enumerable.Type
| ^ protocol 'Enumerable' can only be used as a generic constraint because it has Self or associated type requirements
8 |
9 | func wraps<InnerType>(_ type: InnerType.Type) -> Bool {
10 | return innerType == InnerType.self
❌ (node_modules/expo-modules-core/ios/Swift/DynamicTypes/DynamicType.swift:21:36)
19 | return DynamicConvertibleType(innerType: ConvertibleType)
20 | }
> 21 | if let EnumType = T.self as? any Enumerable.Type {
| ^ protocol 'Enumerable' can only be used as a generic constraint because it has Self or associated type requirements
22 | return DynamicEnumType(innerType: EnumType)
23 | }
24 | if let SharedObjectType = T.self as? SharedObject.Type {
❌ (node_modules/expo-modules-core/ios/Swift/Objects/PropertyComponent.swift:142:9)
140 | }
141 | guard let getter = self.getter else {
> 142 | return
| ^ non-void function should return a value
143 | }
144 | return try getter.call(by: this, withArguments: args)
145 | }
❌ (node_modules/expo-modules-core/ios/Swift/Objects/PropertyComponent.swift:157:9)
155 | }
156 | guard let setter = self.setter else {
> 157 | return
| ^ non-void function should return a value
158 | }
159 | return try setter.call(by: this, withArguments: args)
160 | }
› Compiling react-native Pods/React-RCTLinking » RCTLinkingPlugins.mm
› Compiling react-native Pods/React-RCTLinking » React-RCTLinking-dummy.m
› Compiling react-native Pods/React-RCTLinking » RCTLinkingManager.mm
› Compiling react-native Pods/React-RCTVibration » RCTVibration.mm
› Compiling react-native Pods/React-RCTVibration » RCTVibrationPlugins.mm
› Compiling react-native Pods/React-RCTSettings » RCTSettingsPlugins.mm
› Compiling react-native Pods/React-RCTSettings » RCTSettingsManager.mm
› Compiling react-native Pods/React-RCTNetwork » RCTNetworking.mm
› Compiling react-native Pods/React-RCTNetwork » RCTNetworkTask.mm
› Compiling react-native Pods/React-RCTNetwork » RCTNetworkPlugins.mm
› 4 error(s), and 0 warning(s)
CommandError: Failed to build iOS project. "xcodebuild" exited with error code 65.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment