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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes in iOS 12.3 may break builds #2246
Comments
@rajivshah3 Thanks for the update. We are in the process of updating and preparing our CI system with the latest Apple releases (still waiting for next Xcode version). |
it builds failure after i upgrade to XCode 10.2, should i fix it myself? |
Indeed, the builds are failing with latest XCode 10.2 with the error of "control may reach end of non-void function" |
same here, Enumeration value 'kJSTypeSymbol' not handled in switch ==> "control may reach end of non-void function" leads to Realm build fail Quick workaround is to use xcode 10.1 (build is passing in 10.1), can be downloaded here https://developer.apple.com/downloads/more/ |
Got the same problem, it looks like surely upgrade XCode to 10.2 cause the error. |
@kneth it looks like Xcode 10.2 was released to the public today. Should I do a PR adding Edit: Looks like someone beat me to it 馃槃 #2303 |
Fixed in #2303 |
Fixed By Adding
Example
|
@shivkrishnashah Thank you so much! It worked for me |
Description
(please don't kill me for not following the template 馃槃- this is more of a "heads up" than a bug report)
In iOS 12.3, it looks like Apple is introducing a new type called
symbol
to the JavaScriptCore API:(from
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValueRef.h
)This has certain consequences for Realm:
realm-js/src/jsc/jsc_value.hpp
Lines 44 to 54 in 91d87fe
Since the
kJSTypeSymbol
enum value is not handled in the aboveswitch
statement, builds on Xcode 10.2 Beta (10P82s) will fail with this error:I was able to resolve the error by adding this:
I'm not sure what side effects that change has so I haven't made a PR yet.
Version of Realm and Tooling
API_AVAILABLE(macosx(10.14.4), ios(12.3))
)The text was updated successfully, but these errors were encountered: