Export to GitHub

tibar - issue #10

issue with the Xcode 'build and run'


Posted on Jan 5, 2011 by Swift Rabbit
  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?

Attachments

Comment #1

Posted on Jan 31, 2011 by Massive Hippo

Did you resolve the issue?

Lukasz

Comment #2

Posted on Jan 31, 2011 by Swift Rabbit

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 ;)

Comment #3

Posted on Feb 23, 2011 by Swift Rabbit

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

Comment #4

Posted on Apr 13, 2011 by Helpful Kangaroo

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?

Comment #5

Posted on Apr 13, 2011 by Swift Rabbit

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.

Comment #6

Posted on Apr 14, 2011 by Helpful Rabbit

you can add the frameworks in build phases -> linking

Comment #7

Posted on Jun 16, 2011 by Happy Lion

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/)

Comment #8

Posted on Jul 20, 2011 by Happy Lion

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)

Comment #9

Posted on Aug 17, 2011 by Massive Hippo

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.

Comment #10

Posted on Sep 9, 2011 by Massive Camel

Comment deleted

Comment #11

Posted on Mar 17, 2012 by Swift Camel

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.

Status: New

Labels:
Type-Defect Priority-Medium