Steps to reproduce
1. using the latest timob master and the latest hyperloop master. (see my env ^)
2. *appc new --classic*
3. install hyperloop module. configure tiapp.xml accordingly:
<modules>
<module platform="iphone">hyperloop</module>
</modules>
<plugins>
<plugin>hyperloop</plugin>
</plugins>
4. write this in app.js
https://gist.github.com/hansemannn/3ea14512f894bc507a5cea57336b7f77
5. *appc run -p ios*
Expected Result
App builds normally and shows 2 colored squares
Actual Result
red screen of death. as attached.
If you include
<ios>
<use-jscore-framework>true</use-jscore-framework>
</ios>
it will work. if you set to false, same red screen of death.
PR here: https://github.com/appcelerator/hyperloop.next/pull/33
Steps to test
1. build this hyperloop module ./build.sh 2. install it 3. *appc new --classic* 4. in tiapp.xml, have5. use this in app.js
6. *appc run -p ios*
Expected Result
It will run successfully. You can tests more cases by setting this property as well:The change is inspired by this: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf where by our ticore lib actually doesn't recognise "setPrototypeOf" so we Polyfill instead. The solution is unfortunately not the most elegant, as i'm directly writing code in the template file. [~jhaynie] Since we know where the problem lies, can you propose a better way to resolve it and i'll investigate? Thanks.
I was unable to reproduce the issue with the steps and environment provided above.
5.4.0.v20160519143319
did not allow me to build the project. *There was no error or "Red screen of death" present.* Tested on: iPhone 6s Plus (9.3.1) iOS Simulator (9.3) Mac OSX El Capitan 10.11.5 Studio: 4.7.0.201606220541 Ti SDK: 5.4.0.v20160629063537 Appc NPM: 4.2.7-2 Appc CLI: 5.4.0-23 Xcode 7.3.1 Node v4.4.4 * Closing Ticket.*