viezel / NappUI

A collection of extended functionality for the UI components of Titanium SDK
Other
121 stars 34 forks source link

Fails in Ti SDK 3.2.0 #37

Closed sindresorhus closed 10 years ago

sindresorhus commented 10 years ago

Building my project with Ti SDK 3.2.0rc3 and latest version of NappUI fails.

Looks like they removed NavigationGroup.

Relevant:

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_TiUIiPhoneNavigationGroupProxy", referenced from:
      l_OBJC_$_CATEGORY_TiUIiPhoneNavigationGroupProxy_$_Extended in libdk.napp.ui.a(TiUIiPhoneNavigationGroupProxy+Extended.o)

Full:

Ld /Users/sindresorhus/Library/Developer/Xcode/DerivedData/Forsvaret-coctrrplmlmumeboxtjrqmdfpzpy/Build/Products/Debug-iphonesimulator/Forsvaret.app/Forsvaret normal i386
    cd /Users/sindresorhus/dev/titanium/Forsvaret/build/iphone
    setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
    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"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Forsvaret-coctrrplmlmumeboxtjrqmdfpzpy/Build/Products/Debug-iphonesimulator -L/Users/sindresorhus/dev/titanium/Forsvaret/build/iphone/lib -L/Users/sindresorhus/dev/titanium/Forsvaret/modules/iphone/com.obscure.tiuiex/1.0 -L/Users/sindresorhus/dev/titanium/Forsvaret/modules/iphone/de.marcelpociot.sidemenu/1.1 -L/Users/sindresorhus/dev/titanium/Forsvaret/modules/iphone/dk.napp.ui/1.2.1 -L/Users/sindresorhus/dev/titanium/Forsvaret/modules/iphone/be.k0suke.tiisrefreshcontrol/0.1 -F/Users/sindresorhus/Library/Developer/Xcode/DerivedData/Forsvaret-coctrrplmlmumeboxtjrqmdfpzpy/Build/Products/Debug-iphonesimulator -filelist /Users/sindresorhus/Library/Developer/Xcode/DerivedData/Forsvaret-coctrrplmlmumeboxtjrqmdfpzpy/Build/Intermediates/Forsvaret.build/Debug-iphonesimulator/Forsvaret.build/Objects-normal/i386/Forsvaret.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -framework QuartzCore -framework CoreText -framework CoreGraphics -framework Accelerate -framework QuartzCore -framework CoreText -framework CoreGraphics -framework Accelerate -framework QuartzCore -framework Accelerate -framework CoreImage -framework QuartzCore -framework Accelerate -framework CoreImage -weak_framework iAd -weak_framework iAd -fobjc-link-runtime -Xlinker -no_implicit_dylibs -stdlib=libstdc++ -mios-simulator-version-min=5.0 -weak_framework CoreText -framework EventKit -framework EventKitUI -weak_framework Security -licucore -framework Foundation -weak_framework UIKit -framework CoreGraphics -weak_framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -weak_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 -lde.marcelpociot.sidemenu -ldk.napp.ui -lbe.k0suke.tiisrefreshcontrol -framework ExternalAccessory -ltiverify -lti_ios_debugger -lti_ios_profiler -Xlinker -dependency_info -Xlinker /Users/sindresorhus/Library/Developer/Xcode/DerivedData/Forsvaret-coctrrplmlmumeboxtjrqmdfpzpy/Build/Intermediates/Forsvaret.build/Debug-iphonesimulator/Forsvaret.build/Objects-normal/i386/Forsvaret_dependency_info.dat -o /Users/sindresorhus/Library/Developer/Xcode/DerivedData/Forsvaret-coctrrplmlmumeboxtjrqmdfpzpy/Build/Products/Debug-iphonesimulator/Forsvaret.app/Forsvaret

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_TiUIiPhoneNavigationGroupProxy", referenced from:
      l_OBJC_$_CATEGORY_TiUIiPhoneNavigationGroupProxy_$_Extended in libdk.napp.ui.a(TiUIiPhoneNavigationGroupProxy+Extended.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
sindresorhus commented 10 years ago

Worked around it for now by removing TiUIiPhoneNavigationGroupProxy+Extended.{m,h} and updating dk.napp.ui.js with Ti.UI.iOS.createNavigationWindow();.

fukhaos commented 10 years ago

Can you provide a module.zip with this workaround ?

viezel commented 10 years ago

Here you go: https://github.com/viezel/NappUI/releases/tag/1.2.2