manojdcoder / fabric

Twitter Fabric Integration
Other
23 stars 7 forks source link

Couldn't find module: ti.fabric for architecture: x86_64 #3

Closed felipemathies closed 8 years ago

felipemathies commented 8 years ago

hi man, first thanks for this awesome plugin.... so when im trying to run the app im having this error: [ERROR] : Script Error Couldn't find module: ti.fabric for architecture: x86_64

any clue what im doing wrong? i added the plugin folder, and plugin tag on tiapp.xml, and im loading the module like this : var Fabric = require("ti.fabric");

thanks!

manojdcoder commented 8 years ago

Hope you got the module files copied to your project's modules folder & added them under <modules> tag of tiapp.xml. May I know which version of Titanium SDK you are using?

felipemathies commented 8 years ago

which exactly files/folder i need to copy to my modules folder? im using 5.2.2.GA

manojdcoder commented 8 years ago

It is just same as installing other modules in Titanium. iOS module is located here

felipemathies commented 8 years ago

thanks now its working, i don't know why i tought the plugin script was instilling the module for me, but one thing that im noticing is that titanium capture all the exceptions on production, not handling to frabic, do you now anything about that? thanks again....

manojdcoder commented 8 years ago

The plugin is to add fabric scripts to Xcode project once it is created, during build process. Use Fabric.Crashlytics.logException to log handled exceptions catch through uncaughtException event.

felipemathies commented 8 years ago

i put a listener on uncaughtException event, but when i try to call Fabric.Crashlytics.logException is undefined, i looked on Crashlytics.h and didn't found this method there, im on iOS it seems that this method is android only, do you have any clue how to do this on ios?

manojdcoder commented 8 years ago

Sorry, my bad. That method is not available on iOS, use Fabric.Crashlytics.leaveBreadcrumb or Fabric.Crashlytics.setObject to log exception details.

felipemathies commented 8 years ago

cool, i will test that out...tanks!

parnanzio commented 8 years ago

Where is the zip file for the iOS module? I cannot find it and the link above is not working: https://github.com/manojdcoder/fabric/blob/master/iphone/dist/ti.fabric-iphone-1.0.zip

parnanzio$ gittio install ti.fabric
[INFO]  ti.fabric searching...
[ERROR] ti.fabric:commonjs no distributable available
[ERROR] ti.fabric:ios no distributable available
manojdcoder commented 8 years ago

@parnanzio The module was recently updated by @chrisribe I have requested him to add the binaries. You may wait or just go ahead and compile locally on your machine.

parnanzio commented 8 years ago

@manojdcoder I just compiled it by myself.. It's working, thank you