Orandex / tibar

Automatically exported from code.google.com/p/tibar
0 stars 0 forks source link

issue with the Xcode 'build and run' #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. just follow the tuto of this page: http://code.google.com/p/tibar/ with the 
latest versions of titanium/Xcode/iOS/tibar
    - Titanium mobile SDK 1.5.1
    - Titanium Developer 1.2.2
    - iOS 4.2
    - Xcode 3.2.5
    - tibar 0.4.1
    - OS X 10.6.5
2. compile and run with Titanium: it works
3. compile and run with Xcode: it compiles but during the execution, I have 
these error messages on a red background (on the emulator):

Application Error
Couldn't find module: tibar

In my console:
[DEBUG] loading: /Users/me/Development/testrepository/dev/Resources/tibar.js, 
resource: Users/me/Development/testrepository/dev/Resources/tibar_js
[ERROR] Script Error = Couldn't find module: tibar.

Any idea why?

Original issue reported on code.google.com by rmnsal...@gmail.com on 5 Jan 2011 at 8:12

Attachments:

GoogleCodeExporter commented 9 years ago
Did you resolve the issue?

Lukasz

Original comment by lukasz.r...@gmail.com on 31 Jan 2011 at 12:08

GoogleCodeExporter commented 9 years ago
Yes, it's pretty simple in fact. You just have to follow these steps:
  - go in your [projectName]/build/iphone/.
  - delete all the files except [projectName].xcodeproj (that's to say: build/, Classes/, headers/, Info.plist, ...). If you are not sure, make a copy before.
  - build your project with Titanium to recreate the files deleted (the build will fail)
  - open your project with Xcode ([projectName]/build/iphone/[projectName].xcodeproj)
  - if the SDK is not found, add it (cf. http://code.google.com/p/tibar/ step 2)
  - add the different librairies (cf. http://code.google.com/p/tibar/ step 2)
  - clean with Xcode
  - build with Xcode

Now, you should be enabled to compile your project with Titanium and enjoy this 
beautiful project ;)

Original comment by rmnsal...@gmail.com on 31 Jan 2011 at 1:57

GoogleCodeExporter commented 9 years ago
Another thing to do:
- don't use the same xcodeproj for building and editing your sources.

If you did so, I recommend you to:

- create a new project with titanium.
- copy your resources folder in it
- follow the steps of 'Comment 2'   (clean with Xcode means click on: 
'build/Clean All Targets' on the top of your xcodeproj)
- retry, it should work

Original comment by rmnsal...@gmail.com on 23 Feb 2011 at 9:21

GoogleCodeExporter commented 9 years ago
Hey - I'm trying to follow the main steps... but I'm using Xcode 4, and I can't 
seem to follow along. Am I just missing the menu that he is describing in those 
steps?

Original comment by hospa...@gmail.com on 13 Apr 2011 at 4:35

GoogleCodeExporter commented 9 years ago
I have never used xCode 4. So I don't know the issues with it...
But I'll contact u by gtalk later if you want that we try to solve your pb 
together.

Original comment by rmnsal...@gmail.com on 13 Apr 2011 at 6:23

GoogleCodeExporter commented 9 years ago
you can add the frameworks in build phases -> linking

Original comment by bhuenefe...@gmail.com on 14 Apr 2011 at 9:50

GoogleCodeExporter commented 9 years ago
To solve this problem, additionally to the steps mentioned, I put the 
libtibar.a file into the lib folder of the xcode project 
([projectName]/build/iphone/lib/)

Original comment by pedroma...@gmail.com on 16 Jun 2011 at 2:31

GoogleCodeExporter commented 9 years ago
If with all of this doesn't work, trying to put the libtibar.a file into the 
frameworks folder in the xcode project (dragging the file from the finder 
window to the folder in the sidebar of the xcode)

Original comment by pedroma...@gmail.com on 20 Jul 2011 at 8:43

GoogleCodeExporter commented 9 years ago
I had the same problem with "can't find tibar". Once I put a copy of libtibar.a 
in the build/iphone/lib directory and added libtibar.a to my frameworks in 
XCode, it worked, as in the red screen with "can't find tibar" went away. But 
when I close XCode and go back to Titanium Studio, it again gives me the same 
red screen. AAARG! Another 2 hours of frustration. Thanks in advance of the 
help.

Original comment by bendehg...@gmail.com on 17 Aug 2011 at 12:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Did you resolve the problem #9 ?
If not, or for anyone else, if you get the cant find module error, make sure 
you copied the "manifest" file in addition to the libtibar.a file. Without the 
manifest file, titanium wont find the module.

Original comment by codewise...@gmail.com on 17 Mar 2012 at 7:49