obscure-com / TiUIEx

Extensions to Titanium UI components
15 stars 9 forks source link

Compiled version of the TiUIEx module #2

Open wienke opened 11 years ago

wienke commented 11 years ago

I really love this module. Is there a compiled version of this module available? I have been searching the entire Github rep but couldn't find it.

Cheers, Wienke

pegli commented 11 years ago

I'll start uploading to S3. Here's the current version of the module compiled with the Titanium 3.0.0.GA SDK:

https://pegli.github.s3.amazonaws.com/com.obscure.tiuiex-iphone-1.0.zip

wienke commented 11 years ago

HI Pegli,

Thanks for the really quick response. Tried to download the module but I get an AccessDenied from S3.

Cheers, Wienke

pegli commented 11 years ago

Sorry, the permissions on the S3 bucket weren't set correctly. Please try again now.

p.

wienke commented 11 years ago

Hi Pegli,

I downloaded the version from your S3. Installed it to my project but with the export to an ipa file I still get. The following error:

[TRACE] :  Ld "build/Release-iphoneos/WappZapp Junior.app/WappZapp Junior" normal armv7 [TRACE] :   cd "/Users/wienke/Documents/Titanium Studio Workspace/WappZapp Kids/build/iphone" [TRACE] :   setenv IPHONEOS_DEPLOYMENT_TARGET 5 [TRACE] :   setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin" [TRACE] :   /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk "-L/Users/wienke/Documents/Titanium Studio Workspace/WappZapp Kids/build/iphone/build/Release-iphoneos" "-L/Users/wienke/Documents/Titanium Studio Workspace/WappZapp Kids/build/iphone/lib" "-L/Users/wienke/Documents/Titanium Studio Workspace/WappZapp Kids/modules/iphone/com.obscure.tiuiex/1.0" "-L/Users/wienke/Documents/Titanium Studio Workspace/WappZapp Kids/modules/iphone/ti.flurry/1.3.0" "-F/Users/wienke/Documents/Titanium Studio Workspace/WappZapp Kids/build/iphone/build/Release-iphoneos" -filelist "/Users/wienke/Documents/Titanium Studio Workspace/WappZapp Kids/build/iphone/build/WappZapp Junior.build/Release-iphoneos/WappZapp Junior-universal.build/Objects-normal/armv7/WappZapp Junior.LinkFileList" -dead_strip -ObjC -weak_framework iAd -weak_framework iAd -weak_framework CoreVideo -weak_framework CoreMedia -fobjc-link-runtime -miphoneos-version-min=5 -framework Foundation -weak_framework UIKit -framework CoreGraphics -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.obscure.tiuiex -lti.flurry -ltiverify -lti_ios_debugger -licucore -o "/Users/wienke/Documents/Titanium Studio Workspace/WappZapp Kids/build/iphone/build/Release-iphoneos/WappZapp Junior.app/WappZapp Junior" [TRACE] :  Undefined symbols for architecture armv7: [TRACE] :   "_OBJCMETACLASS$_TiUITabGroupProxy", referenced from: [TRACE] :   _OBJCMETACLASS$_TiUITabGroupProxyEx in libcom.obscure.tiuiex.a(TiUITabGroupProxyEx.o) [TRACE] :   (maybe you meant: _OBJCMETACLASS$_TiUITabGroupProxyEx) [TRACE] :   "_OBJCCLASS$_TiUITabGroupProxy", referenced from: [TRACE] :   _OBJCCLASS$_TiUITabGroupProxyEx in libcom.obscure.tiuiex.a(TiUITabGroupProxyEx.o) [TRACE] :   (maybe you meant: _OBJCCLASS$_TiUITabGroupProxyEx) [TRACE] :  ld: symbol(s) not found for architecture armv7 [TRACE] :  clang: error: linker command failed with exit code 1 (use -v to see invocation) [ERROR] :  \ BUILD FAILED ** [ERROR] :  The following build commands failed:

I have set the minimum iOS version to 5.0. It somehow still fails on the armv7 build.

Any ideas?

wienke commented 11 years ago

Hi Pegli, already some thoughts on the issues above. Still running in to armv7 build errors. Did exactly what you told. No results yet unfortenately.

wienke commented 11 years ago

I really would like to use this module on my app. But I keep getting the following error:

[ERROR] :  \ BUILD FAILED ** [ERROR] :  The following build commands failed: [ERROR] :   Ld build/Release-iphoneos/WappZapp.app/WappZapp normal armv7 [ERROR] :  (1 failure)

Any idea how to fix this?

pegli commented 11 years ago

Can you download the latest build from S3 and try again? I've made some changes that should fix the problem with the missing TiUITabGroupProxy. I also added a test Titanium app at https://pegli.github.s3.amazonaws.com/tiuiex-testproject.zip that you should be able to unzip and run.

wienke commented 11 years ago

Hi Paul, thanks for the quick response. I downloaded the latest module from you S3 account but it unfortunately did not help. I also tested the test project but I get the same error message:

[ERROR] :  \ BUILD FAILED ** [ERROR] :  The following build commands failed: [ERROR] :   Ld build/Release-iphoneos/Test.app/Test normal armv7 [ERROR] :  (1 failure)

Any ideas? I could reinstall everything including Titanium Studio?

pegli commented 11 years ago

Well, the good news is that now I can reproduce the problem myself, so I'll see what I can do to get it fixed.

wienke commented 11 years ago

Good to hear. I there is any thing I can do to help let me know.

pegli commented 11 years ago

It turns out that this is a bug in the Titanium SDK. I've filed an issue here:

https://jira.appcelerator.org/browse/TC-1908

You should be able to build and run your app in the simulator using ti build -p phone. To test on the device, you would need to modify the Xcode build settings as follows:

  1. Open build/iphone/MyApp.xcodeproj in Xcode
  2. Select the first target from the list of targets and open the Build Settings tab.
  3. Search for "OTHER_CFLAGS".
  4. Select the bolded "Debug" settings and press the Delete key. Do the same for "Developer". You should see "-DUSE_TI_UITAB" and "-DUISE_TI_UIIMAGEVIEW" in the new values.
  5. Build and deploy to the device using Xcode.

I'm sorry that the workaround is so complex. I'll update this issue when the SDK is fixed or if I find a better way around this.

pegli commented 11 years ago

Here's a workaround to try: add the following function to your app.js file, remove the build directory, and rebuild for the device:

function COMPILER_TRICK() {
  Ti.UI.createImageView();
  Ti.UI.createTab();
}

You don't need to actually call this function. The purpose is to trick the Titanium compiler into including the two classes that it is leaving out.

k0sukey commented 11 years ago

Try this.

Create assets/com.obscure.TiUIEx.js file.

Ti.UI.createImageView();
Ti.UI.createTabGroup();
Ti.UI.iOS.createToolBar();
wienke commented 10 years ago

Hi Pegli, I copy pasted you ImageView extension at:

https://github.com/pegli/TiUIEx/blob/master/mobile/iphone/Classes/ComObscureTiUIExImageView.m

to the NappUI Module:

https://github.com/wienke/NappUI/blob/master/Classes/TiUIImageView%2BExtended.m

It does not work so far but I hope Mads can help out.

Just to let you know.

Cheers, Wienke