ewindso / ios-parse-titanium-module

iOS Parse.com Titanium Module
Other
83 stars 23 forks source link

Cant build with module included #1

Closed iantearle closed 11 years ago

iantearle commented 11 years ago

Hi, Getting the following error on build when including your module, any ideas?

  Ld build/Debug-iphonesimulator/Heritage.app/Heritage normal i386
[TRACE] :      cd /Users/iantearle/Titanium/Heritage-App/build/iphone
[TRACE] :      setenv IPHONEOS_DEPLOYMENT_TARGET 5
[TRACE] :      setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
[TRACE] :      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -L/Users/iantearle/Titanium/Heritage-App/build/iphone/build/Debug-iphonesimulator -L/Users/iantearle/Titanium/Heritage-App/build/iphone/lib -L/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.elijahwindsor.parsemodule/1.0 -L/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.pixate.pxengine/1.0.2 -L/Users/iantearle/Titanium/Heritage-App/modules/iphone/de.marcelpociot.smpagecontrol/1.0 -L/Users/iantearle/Titanium/Heritage-App/modules/iphone/ti.viewshadow/0.4 -L/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.0x82.sharekit/3.2 -L/Users/iantearle/Titanium/Heritage-App/modules/iphone/us.jeffhaynie.apprating/0.1 -L/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.obscure.richtext/1.0.1 -L/Users/iantearle/Titanium/Heritage-App/modules/iphone/count.ly/0.2.1 -L/Users/iantearle/Titanium/Heritage-App/modules/iphone/mattapp.statusbar/1.2 -F/Users/iantearle/Titanium/Heritage-App/build/iphone/build/Debug-iphonesimulator -F/Users/iantearle/Titanium/Heritage-App/build/iphone/build/Debug-iphonesimulator -F/Users/iantearle/Titanium/Heritage-App/build/iphone/lib -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.elijahwindsor.parsemodule/1.0 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.pixate.pxengine/1.0.2 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/de.marcelpociot.smpagecontrol/1.0 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/ti.viewshadow/0.4 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.0x82.sharekit/3.2 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/us.jeffhaynie.apprating/0.1 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.obscure.richtext/1.0.1 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/count.ly/0.2.1 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/mattapp.statusbar/1.2 -F/Users/iantearle/Titanium/Heritage-App/build/iphone/build/Debug-iphonesimulator -F/Users/iantearle/Titanium/Heritage-App/build/iphone/lib -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.elijahwindsor.parsemodule/1.0 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.pixate.pxengine/1.0.2 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/de.marcelpociot.smpagecontrol/1.0 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/ti.viewshadow/0.4 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.0x82.sharekit/3.2 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/us.jeffhaynie.apprating/0.1 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.obscure.richtext/1.0.1 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/count.ly/0.2.1 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/mattapp.statusbar/1.2 -F/Users/iantearle/Titanium/Heritage-App/build/iphone/build/Debug-iphonesimulator -F/Users/iantearle/Titanium/Heritage-App/build/iphone/lib -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.elijahwindsor.parsemodule/1.0 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.pixate.pxengine/1.0.2 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/de.marcelpociot.smpagecontrol/1.0 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/ti.viewshadow/0.4 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.0x82.sharekit/3.2 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/us.jeffhaynie.apprating/0.1 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.obscure.richtext/1.0.1 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/count.ly/0.2.1 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/mattapp.statusbar/1.2 -F/Users/iantearle/Titanium/Heritage-App/build/iphone/build/Debug-iphonesimulator -F/Users/iantearle/Titanium/Heritage-App/build/iphone/lib -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.elijahwindsor.parsemodule/1.0 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.pixate.pxengine/1.0.2 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/de.marcelpociot.smpagecontrol/1.0 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/ti.viewshadow/0.4 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.0x82.sharekit/3.2 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/us.jeffhaynie.apprating/0.1 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/com.obscure.richtext/1.0.1 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/count.ly/0.2.1 -F/Users/iantearle/Titanium/Heritage-App/modules/iphone/mattapp.statusbar/1.2 -filelist /Users/iantearle/Titanium/Heritage-App/build/iphone/build/Heritage.build/Debug-iphonesimulator/Heritage.build/Objects-normal/i386/Heritage.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -framework CoreTelephony -framework CoreTelephony -framework CoreText -framework QuartzCore -framework ImageIO -framework CoreText -framework QuartzCore -framework ImageIO -framework UIKit -framework Security -framework SystemConfiguration -framework Security -framework MessageUI -framework CFNetwork -framework CoreLocation -weak_framework Twitter -weak_framework Social -weak_framework Accounts -weak_framework AdSupport -framework UIKit -framework Security -framework SystemConfiguration -framework Security -framework MessageUI -framework CFNetwork -framework CoreLocation -weak_framework Twitter -weak_framework Social -weak_framework Accounts -weak_framework AdSupport -framework PXEngine -framework PXEngine /usr/lib/libsqlite3.dylib /usr/lib/libz.1.1.3.dylib "-F/Users/ewindsor/Documents/Titanium Studio Workspace/parsemodule" -framework Parse -weak_framework Accounts -framework AdSupport -framework AudioToolbox -framework CFNetwork -framework CoreLocation -framework MobileCoreServices -framework QuartzCore -framework Security -weak_framework Social -framework StoreKit -framework SystemConfiguration -framework Foundation -framework UIKit -framework CoreGraphics /usr/lib/libsqlite3.dylib /usr/lib/libz.1.1.3.dylib "-F/Users/ewindsor/Documents/Titanium Studio Workspace/parsemodule" -framework Parse -weak_framework Accounts -framework AdSupport -framework AudioToolbox -framework CFNetwork -framework CoreLocation -framework MobileCoreServices -framework QuartzCore -framework Security -weak_framework Social -framework StoreKit -framework SystemConfiguration -framework Foundation -framework UIKit -framework CoreGraphics -weak_framework iAd -weak_framework iAd -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5 -licucore -framework Foundation -weak_framework UIKit -framework CoreGraphics -weak_framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -framework MapKit -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -lxml2 -framework StoreKit -lTiCore -lcom.elijahwindsor.parsemodule -lcom.pixate.pxengine -lde.marcelpociot.smpagecontrol -lti.viewshadow -lcom.0x82.sharekit -lus.jeffhaynie.apprating -lcom.obscure.richtext -lcount.ly -lmattapp.statusbar -framework ExternalAccessory -ltiverify -lti_ios_debugger -o /Users/iantearle/Titanium/Heritage-App/build/iphone/build/Debug-iphonesimulator/Heritage.app/Heritage
[TRACE] :  ld: warning: directory not found for option '-F/Users/ewindsor/Documents/Titanium Studio Workspace/parsemodule'
[TRACE] :  ld: warning: directory not found for option '-F/Users/ewindsor/Documents/Titanium Studio Workspace/parsemodule'
[TRACE] :  ld: framework not found Parse
[TRACE] :  clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR] :  ** BUILD FAILED **
[ERROR] :  The following build commands failed:
[ERROR] :    Ld build/Debug-iphonesimulator/Heritage.app/Heritage normal i386
[ERROR] :  (1 failure)
iantearle commented 11 years ago

Im guessing the parsemodule isnt included correctly in the repo? It appears to still be linked on your local computer ;)

ewindso commented 11 years ago

Hi Ian -- it should all be there, the only thing is that you'd need to change the OTHER_LDFLAGS -F"/your/full/path" to where you cloned the repo.

The reason for this is because it compiles with -framework Parse, which will be located in /your/full/path/Parse.framework.

Let me know if this work for you... thanks!

iantearle commented 11 years ago

Yup, I did it a slightly different (incorrect) way, re done as above and thats fixed it. Thank you.

shekyboy commented 11 years ago

Hi,

I downloaded the module within the zip file. I have placed this under my project in the modules directory. project/modules/iphone/com.elijahwindsor.parsemodule/1.0

However I am getting the following build error: [ERROR] :  \ BUILD FAILED ** [ERROR] :  The following build commands failed: [ERROR] :   Ld build/Debug-iphonesimulator/MyApp.app/MyApp normal i386 [ERROR] :  (1 failure)

In the module.xconfig, I see reference to /Users/ewindsor/Documents/Titanium Studio Workspace/parsemodule

What should I replace this with? I tried all the combinations and nothing seems to work. Do I have to compile the module again? I thought the zip file contained the plug and play module.

Sanojinkoniq commented 11 years ago

@ shekyboy , same here....

pdvsit commented 11 years ago

I also found same error . After that I add in in module.xcconfig file OTHER_LDFLAGS=$(inherited) -framework CoreTelephony but nothing happen. I have develop Speech to Text using com.clearlyinnovative.utils module because its free. Any body have idea How solve this problem. Please Help Me.

saggy commented 11 years ago

Hi i am facing same issue while creating module, as above mention, please can anybody help me, i am getting stuck due to this issue

can anybody help me to know about repo=="it should all be there, the only thing is that you'd need to change the OTHER_LDFLAGS -F"/your/full/path" to where you cloned the repo. "

what should be the repo?

iantearle commented 11 years ago

Moved on @saggy check out https://gist.github.com/aaronksaunders/5443666

saggy commented 11 years ago

Hi , iantearle,

Thank for your fast response.. But i want to know that if we add any external static framework in project. I am getting error else it work fine . do you know any thing thing about this problem

iantearle commented 11 years ago

Like I say, I moved on. I didn't have any success with this project and unfortunately for the developer it's not kept up to date as much as the JS library can be done by Parse themselves.

Using Aaron Saunders approach is far more stable and is supported in part by Parse, therefore is far better documented.

saggy commented 11 years ago

thanx for respond