CommonJS Module Issue on IOS

You must Login before you can answer or comment on any questions.

Hi,

I sorta have a strange issue with commonjs and duplicating a project on IOS and I wonder if anyone has experienced anything similar before.

I have a project that is working fine using the commonjs/module style. I create a second brand new project and copy the entire resources directory from the first (working project) to the second (new empty project). When I run the second project only the main window loads. I have a login view that is supposed to load from a (separate js file) and add it to the main window. This works perfectly on in the first project. I have verified the folder structure of the second project and it is identical to the first project.

- There are also no errors when I run the second project.
- I have also step through the second project in debug and the modules that are being required return the correct objects
- I have also done a Clean and deleted the Build Folder many times

I am not sure what to check next?

I am currently using the following: Titanium Version: 2.0.1.201204132053

SDK Version 2.0.1. GA2

If anyone has seen anything similar or any suggestion would be greatly appreciated. I know its hard without any source code. :)

Thank You

— asked 10 months ago by sean sean
2 Comments
  • sample code usually helps here... also I suspect there is a configuration issue somewhere causing your problems

    — commented 10 months ago by Aaron Saunders

  • Hi Aaron,

    Yea I know , but I am positive it has nothing to do with the code. I works perfect in one project and and not in the second one.

    I went back to the first project and changed the GUID by 1 number in the xml and manifest at the end. Saved and reran the first project and now the first project is not working. I then put the guid back to the the way it was and the first project is still broken...

    Is there something that I am missing?

    Thanks

    — commented 10 months ago by sean sean

2 Answers

Here is the solution----

I upgraded to the latest version of studio 2.1.1.2 and GA SDK 2.1.1 and it solved my issue with the projects not loading.

— answered 10 months ago by sean sean
answer permalink
2 Comments
  • Probably it was just a clean full-rebuild. :)

    — commented 10 months ago by Alexander Bauer

  • I wish that was the case. I probably did that at least 30 times on the 2.0.1

    — commented 10 months ago by sean sean

Hi Sean, in that case you can always delete the build folder fron the project directory and and in the next build titanium will create it again, in most cases it solves the problem.

— answered 10 months ago by Ashish Nigam
answer permalink
2 Comments
  • Hi Ashish,

    I did deleted the build folder everytime on the the 2.0.1 version i was using. As soon as I upgraded to 2.1.1 and try to run the project, I got a warning about the xml version from the system folder was different and do I want to use it. When I did this the app worked perfect. I never received that warning in the 2.0.1 version no matter how many times I deleted the build folder.

    So there is something definantly different between the 2 versions.

    Thanks

    — commented 10 months ago by sean sean

  • Ok Sean thanks for your information. i will keep in mind.

    — commented 10 months ago by Ashish Nigam

Your Answer

Think you can help? Login to answer this question!