-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expo run:ios build fails(fresh project) #20777
Comments
I had a similar problem: .....
❌ (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 | }
....
› 4 error(s), and 27 warning(s)
CommandError: Failed to build iOS project. "xcodebuild" exited with error code 65. expo-env-info 1.0.5 environment info:
System:
OS: macOS 12.5
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 18.7.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 8.15.0 - /usr/local/bin/npm
Watchman: 2022.07.04.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
IDEs:
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
npmPackages:
expo: ~47.0.12 => 47.0.13
react: 18.1.0 => 18.1.0
react-dom: 18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
react-native-web: ~0.18.7 => 0.18.10
npmGlobalPackages:
expo-cli: 6.1.0
Expo Workflow: bare |
Having the exact same probem here: #20764 |
Same issue |
same here |
same error here |
Looks like you have a pretty old version of Xcode. Could you try again after upgrading to the latest (14.2)? |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as spam.
This comment was marked as spam.
Same |
Try to upgrade expo on the app store. |
@ithunter101 I don't use expo from the app store. I am using bare workflow... |
@0x-s13i your issue is completely different than this, so please don't spam here and just wait until I get to the issue you reported. |
Apologies @tsapeta. Seems to be problems with the Expo Modules Core repo so I assumed it was linked in some way. I seem to have fixed some issues by manually copying the main folder on GitHub, and then came across different issues now with the AppDelegates folder. My thinking was that they would all be linked, but I hear you, and will wait until you can get around to it 👍 |
I'm experiencing build failures with the same error after upgrading an existing expo bare project from 46 to 47. |
@TomasMorton have you tried to upgrade Xcode? See my comment here #20777 (comment) |
@tsapeta thanks for the quick reply. Definitely my mistake, I didn't realise our build agent was configured for Xcode 13.4.1. Working great now 😊 |
Works with Xcode 14.2. Thank you. |
Same node -v npm -v nvm -v yarn -v expo --version xcode
|
@vinaciotm The solution has already been posted here several times. Just upgrade Xcode to the latest (14.2) and these errors should go away. |
Summary
I just created a new expo project using npx create-expo-app using typescript/react navigation template and i also added @expo/webpack-config@^0.17.2 for web support, nothing else. No custom code added, just the scaffold that expo generates. When i try to run npx expo run:ios i get the following errors:
The text was updated successfully, but these errors were encountered: