-
Notifications
You must be signed in to change notification settings - Fork 586
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
Xcode 9 fixes #1483
Xcode 9 fixes #1483
Conversation
shellScript = "node ../scripts/download-realm.js ios --sync"; | ||
showEnvVarsInLog = 0; | ||
shellPath = "/bin/sh"; | ||
shellScript = "[ -z \"$NVM_DIR\" ] && export NVM_DIR=\"$HOME/.nvm\"\n\nif [[ -s \"$HOME/.nvm/nvm.sh\" ]]; then\n . \"$HOME/.nvm/nvm.sh\"\nelif [[ -x \"$(command -v brew)\" && -s \"$(brew --prefix nvm)/nvm.sh\" ]]; then\n . \"$(brew --prefix nvm)/nvm.sh\"\nfi\nnode ../scripts/download-realm.js ios --sync"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will probably fail on CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it failed last time I committed it.
…n tests immediatelly and exit afterwards
# Conflicts: # tests/js/list-tests.js # tests/js/results-tests.js
render() { | ||
// let objects = realm.objects('Todo'); | ||
// let extraItems = [ | ||
// { name: 'Complete', items: objects.filtered('done = true') }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason we're adding a bunch of commented-out code (here, and elsewhere)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no this is leftover. will remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I will post a separate comment when I have tried to build locally.
@@ -0,0 +1,63 @@ | |||
//////////////////////////////////////////////////////////////////////////// | |||
// | |||
// Copyright 2016 Realm Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2017
Platform, | ||
StyleSheet | ||
} from 'react-native'; | ||
// import NavigationExperimental from 'react-native-deprecated-custom-components'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be removed (and line 27 too)
import realm from './realm'; | ||
import styles from './styles'; | ||
|
||
export default class TodoApp extends React.Component { | ||
// import NavigationExperimental from 'react-native-deprecated-custom-components'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be removed
}); | ||
} | ||
this.todoLists.addListener((name, changes) => { | ||
console.log("changed: " + JSON.stringify(changes)); | ||
if (params) { | ||
console.error("params.json indicate a test run. Exiting application"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"indicate" -> "indicates"
}); | ||
console.log("registered listener"); | ||
|
||
|
||
// Bind all the methods that we will be passing as props. | ||
this.renderScene = this.renderScene.bind(this); | ||
// this.renderScene = this.renderScene.bind(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove?
scripts/test.sh
Outdated
: # nothing to see here, will stop cycling on the first successful run | ||
done | ||
#parse devices | ||
IOS_RUNTIME=$(xcrun simctl list runtimes | grep -m1 -o '(com.apple.CoreSimulator.SimRuntime.iOS.*)' | sed 's/[()]//g') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't work for me locally. Doing xcrun simctl list runtimes | grep -m1 'com.apple.CoreSimulator.SimRuntime.iOS.*' | awk '{ print $2 }'
, gets the iOS version number for me locally. When running ./scripts/test.sh react-tests
I see the following in the end:
Shuttting down realm-js-test simulator. (device is not deleted. you can use it to debug the app)
Checking tests results
*** ReactTests SUCCESS ***
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ending is normal
import RNFS from 'react-native-fs'; | ||
import RNExitApp from 'react-native-exit-app-no-history'; | ||
|
||
// import {setJSExceptionHandler} from 'react-native-exception-handler'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this section be removed?
address review comments
What, How & Why?
We have seen many issue related to Xcode recently. The number of issues increased when Xcode 9 was released but it is still unclear if all the issues are related to that version.
TODO
node
inside Xcode must match version used when executingnpm install
React/RCTBridge.h
not found)libReact.a
not found)'sendAppEventWithName:body:' is deprecated: Subclass RCTEventEmitter instead
)CHANGELOG.md
Status