Can't build Expokit 29 project on Xcode 10

#1

I’m currently unable to build my detached expokit SDK 29 app on Xcode 10 beta 5, I’m getting the following errors:

disable-all-checks -include /Users/dario/workspace/feeld-reactnative/ios/Pods/Target\ Support\ Files/ExpoKit/ExpoKit-prefix.pch -MMD -MT dependencies -MF /Users/dario/workspace/feeld-reactnative/ios/DerivedData/feeld-alpha/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoKit.build/Objects-normal/arm64/EXKernel.d --serialize-diagnostics /Users/dario/workspace/feeld-reactnative/ios/DerivedData/feeld-alpha/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoKit.build/Objects-normal/arm64/EXKernel.dia -c /Users/dario/workspace/feeld-reactnative/ios/Pods/ExpoKit/ios/Exponent/Kernel/Core/EXKernel.m -o /Users/dario/workspace/feeld-reactnative/ios/DerivedData/feeld-alpha/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/ExpoKit.build/Objects-normal/arm64/EXKernel.o

/Users/dario/workspace/feeld-reactnative/ios/Pods/ExpoKit/ios/Exponent/Kernel/Core/EXKernel.m:294:9: error: multiple methods named 'setState:' found with mismatched result, parameter type or attributes
        [appStateModule setState:@"background"];
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/dario/workspace/feeld-reactnative/ios/Pods/ExpoKit/ios/Exponent/Kernel/Core/EXKernel.m:4:
/Users/dario/workspace/feeld-reactnative/ios/Pods/ExpoKit/ios/Exponent/Versioned/Core/Internal/EXAppState.h:10:1: note: one possibility
- (void)setState:(NSString *)state;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/dario/workspace/feeld-reactnative/ios/Pods/Target Support Files/ExpoKit/ExpoKit-prefix.pch:2:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h:22:57: note: also found
@property(nonatomic,readwrite) UIGestureRecognizerState state;  // the current state of the gesture recognizer. can only be set by subclasses of UIGestureRecognizer, but can be read by consumers
                                                        ^~~~~
/Users/dario/workspace/feeld-reactnative/ios/Pods/ExpoKit/ios/Exponent/Kernel/Core/EXKernel.m:302:9: error: multiple methods named 'setState:' found with mismatched result, parameter type or attributes
        [appStateModule setState:@"active"];
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/dario/workspace/feeld-reactnative/ios/Pods/ExpoKit/ios/Exponent/Kernel/Core/EXKernel.m:4:
/Users/dario/workspace/feeld-reactnative/ios/Pods/ExpoKit/ios/Exponent/Versioned/Core/Internal/EXAppState.h:10:1: note: one possibility
- (void)setState:(NSString *)state;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/dario/workspace/feeld-reactnative/ios/Pods/Target Support Files/ExpoKit/ExpoKit-prefix.pch:2:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h:22:57: note: also found
@property(nonatomic,readwrite) UIGestureRecognizerState state;  // the current state of the gesture recognizer. can only be set by subclasses of UIGestureRecognizer, but can be read by consumers
                                                        ^~~~~
/Users/dario/workspace/feeld-reactnative/ios/Pods/ExpoKit/ios/Exponent/Kernel/Core/EXKernel.m:359:7: error: multiple methods named 'setState:' found with mismatched result, parameter type or attributes
      [appStateModule setState:newState];
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/dario/workspace/feeld-reactnative/ios/Pods/ExpoKit/ios/Exponent/Kernel/Core/EXKernel.m:4:
/Users/dario/workspace/feeld-reactnative/ios/Pods/ExpoKit/ios/Exponent/Versioned/Core/Internal/EXAppState.h:10:1: note: one possibility
- (void)setState:(NSString *)state;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/dario/workspace/feeld-reactnative/ios/Pods/Target Support Files/ExpoKit/ExpoKit-prefix.pch:2:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h:22:57: note: also found
@property(nonatomic,readwrite) UIGestureRecognizerState state;  // the current state of the gesture recognizer. can only be set by subclasses of UIGestureRecognizer, but can be read by consumers
                                                        ^~~~~
3 errors generated.


Build failed    06/08/2018, 13:22    69.0 seconds

Is this planned to be fixed?

Thanks!

#2

I am sure they will update to support Xcode 10 when it comes out, but I bet they won’t look at it until Mojave/Xcode 10 are close to release

#3

Hey @radiodario,

As @rcastner mentioned, support for Xcode10 won’t be available until it is released and out of beta. You are welcome to submit a PR in the mean time if you want to continue using Xcode 10!

Cheers,

Adam

closed #4

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.