[TIMOB-16433] Module: Can't compile project with Wikitude module included
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2017-10-12T16:33:21.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Ivan Skugor |
Assignee | Unknown |
Created | 2014-01-13T10:23:03.000+0000 |
Updated | 2018-08-06T17:52:07.000+0000 |
Description
Hello.
I can't compile empty project with just Wikitude module included. To see this issue, unzip this project: [https://drive.google.com/file/d/0B3_U6pYkC0P6VDltMERMNGlGU28/edit?usp=sharing], go to that directory in terminal app and type: ti build --platform iphone. Here is error log:
{quote}
[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/iPhoneSimulator7.0.sdk -L/Users/iskugor/Documents/TipsyAndTumbler/Test/build/iphone/build/Debug-iphonesimulator -L/Users/iskugor/Documents/TipsyAndTumbler/Test/build/iphone/lib -L/Users/iskugor/Documents/TipsyAndTumbler/Test/modules/iphone/com.wikitude.ti/3.2.1 -F/Users/iskugor/Documents/TipsyAndTumbler/Test/build/iphone/build/Debug-iphonesimulator -filelist /Users/iskugor/Documents/TipsyAndTumbler/Test/build/iphone/build/Test.build/Debug-iphonesimulator/Test-universal.build/Objects-normal/i386/Test.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -F/Users/iskugor/Documents/TipsyAndTumbler/Test/build/iphone/../../modules/iphone/com.wikitude.ti/3.2.1/platform/iphone -lc++ -lsqlite3 -lz -ObjC -framework AssetsLibrary -framework CoreMedia -framework CoreMotion -framework CoreVideo -framework Security -framework WikitudeSDK -F/Users/iskugor/Documents/TipsyAndTumbler/Test/build/iphone/../../modules/iphone/com.wikitude.ti/3.2.1/platform/iphone -lc++ -lsqlite3 -lz -ObjC -framework AssetsLibrary -framework CoreMedia -framework CoreMotion -framework CoreVideo -framework Security -framework WikitudeSDK -fobjc-link-runtime -Xlinker -no_implicit_dylibs -stdlib=libstdc++ -mios-simulator-version-min=6.0 -weak_framework CoreText -framework EventKit -framework EventKitUI -lti_ios_profiler -weak_framework Security -framework Foundation -weak_framework UIKit -framework CoreGraphics -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.wikitude.ti -ltiverify -lti_ios_debugger -licucore -Xlinker -dependency_info -Xlinker /Users/iskugor/Documents/TipsyAndTumbler/Test/build/iphone/build/Test.build/Debug-iphonesimulator/Test-universal.build/Objects-normal/i386/Test_dependency_info.dat -o /Users/iskugor/Documents/TipsyAndTumbler/Test/build/iphone/build/Debug-iphonesimulator/Test.app/Test
[TRACE] Undefined symbols for architecture i386:
[TRACE] "_ADBannerContentSizeIdentifierLandscape", referenced from:
[TRACE] +[TiUIiOSAdViewProxy landscapeSize] in TiUIiOSAdViewProxy.o
[TRACE] "_ADBannerContentSizeIdentifierPortrait", referenced from:
[TRACE] +[TiUIiOSAdViewProxy portraitSize] in TiUIiOSAdViewProxy.o
[TRACE] "_OBJC_CLASS_$_ADBannerView", referenced from:
[TRACE] objc-class-ref in TiUIiOSAdView.o
[TRACE] ld: symbol(s) not found for architecture i386
[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/Test.app/Test normal i386
[ERROR] (1 failure)
{quote}
Now, go to "Test/build/iphone" and import that project to XCode and try to compile project in XCode by pressing "Run" button and you'll see that project can be compiled directly from XCode.
Seems this issue happens because AdBanner which Wikitude module does not use.
Thanks
I confirmed this error is reproducible with the com.wikitude.ti 3.2.1 module. I have no idea why it's happening. I really don't think it's a Titanium build related issue. Without the module, the app builds fine. It's as if the module's xcconfig file is mucking up the clang arguments. I think [~vduggal] or [~srahim] should take a peek before we resolve this as not our bug.
App can be compiled from XCode, that's why I think it's Titanium issue. I try to get someone from Wikitude to comment on this issue, they also said it's Ti issue and they know more about this subject.
[~ivan.skugor] Do you have a contact you can forward? We're stuck without more information.
Someone from Wikitude should give comment soon (we've contacted them). In a mean time, there's Wikitude Github repo: https://github.com/Wikitude/wikitude-titanium. Code for Ti module was removed, but you can still find in git history.
This issue was previously scheduled to be worked on in more than one sprint: * 'Release 3.1.2' (on board '3.1.X Triage') * 'Release 3.0.1/TS 3.0.2' (on board '3.1.0 Triage') * 'Investigate' (on board '3.2.X Triage') Starting from JIRA Agile 6.3, an issue can only belong to a single future sprint. Read more about this change: http://docs.atlassian.com/agile/docs-0630/Sprint+Marker+Migration This issue is now scheduled for future sprint 'Release 3.1.2' (on board '3.1.X Triage'). If this is incorrect, please update the issue accordingly. This comment was automatically generated by JIRA. If it is no longer relevant, please feel free to delete it.
The issue was that the
AdSupport
framework was not linked correctly back then. This should not be an issue these days anymore, resolving asNot Our Bug
.Closing as "not our bug". If you disagree, please reopen.