I have made a complete app with Titanium and Wikitude for Android with no problem , i need to make the same app on iOS .
I'm sure that using the simulator is not the problem , because i want to start the simulator and see the black screen , but
xcode stops when he try to build the module, not when the App runs , and give this error:
** BUILD FAILED **
: The following build commands failed:
: Ld build/Debug-iphonesimulator/ModuleSamples.app/ModuleSamples normal i386
: (1 failure)
And i don't own an iphone for now so i can't try on that xD
I have update OSX to 10.9.0 , xcode to 5.0.2 and Titanium Studio to 3.2.0 .
EDIT: 13/01/2014
The real problem is that my xcode , for some unknown reason , can't compile the com.wikitude.it module of ios , but the android version run perfectly. And the IOSsimulator work just fine , i started it with only the module for android and everything goes well until i try to open the ArchitectView , as expected it say that there is no module .
So i don't have any clue .
A
Andreas Schacherbauer
said
about 10 years ago
Hi,
looks to me like a problem with the TI Core since the missing symbol has something to do with there internal ad view. (change the log level in titanium studio to verbose to see the actual linker error)
But you can work around the issue if you append a -framework iAd to the OTHER_LDFLAGS or the SIMULATOR ONLY in the Wikitude module.xcconfig (Using the module.xcconfig is the easiest way to add another framework which is not necessarily used by the module, but by the Titanium Core itself).
Sorry to ask this question again, but after reading all these messages still unclear to me where I have to store WikitudeSDK.Framework to compile and run Titanium apps.
I've downloaded the com.wikitude.ti from MarketPlace. Then I've downloaded the WikitudeTitaniumSample. I've create the new workspace as indicated in the Titanium documentation from Wikitude Developer page here: http://developer.wikitude.com/documentation/appcelerator and com.wikitude.ti module is configure in tiapp.xml.
Now, I can't compile the sample app for iphone emulator. LD is not able to find the Wikitude lib/framework and therefore cannot complete its compilation.
: ** BUILD FAILED **
: The following build commands failed:
: Ld build/Debug-iphonesimulator/ModuleSamples.app/ModuleSamples normal i386
: (1 failure)
However I can compile it for Android, but I am not sure if it is working or not, because every sample/option that I try exits with an error by forcing the app to close.
So after reading all the messages here and considering the updated versions of Titanium as well as Wikitude SDK and Wikitude samples files, I get confused. so:
Should I create/copy folder of WikitudeSDK to list WikitudeSDK.Framework... if so, where should I put that folder (i.e. in Library/ApplicationSupport/Titanium/modules or as new folder in the application workspace/build/iphone folder? If that's the case, do I edit module.xcconfig? Which one (the one located in Library/../../modules/iphone or the one in the workspace/buid/iphone folder?
Then, how can I verify if the corresponding Wikitude framework/library is included in the Titanium build folder? What file should I have there?
Could someone here that already has had the luck to compile and run this sample app on both platforms (Android and iOS), post a step-by-step based on current builds of Titanium, WikitudeSDK and sample files?
It would be much appreciated !
For additional information of my config, here's a screenshoot of this situation (android fail, iOS error, tiapp.xml properties and workspace folders/files): https://www.dropbox.com/s/j73vxdv0ket6aj0/Image1.png
Thanks and regards,
OKFP
G
Gsimone21892
said
about 10 years ago
Thanks for the answer i have added the framework iAd in the IoSsimulator LD but nothing changed , the console give me only this , with any level of verbose :
Titanium Command-Line Interface, CLI version 3.2.0, Titanium SDK version 3.2.0.GA
Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.
: Ld build/Debug-iphonesimulator/ModuleSamples.app/ModuleSamples normal i386
: (1 failure)
Can this give you more information than before ?
A
Andreas Schacherbauer
said
about 10 years ago
Hi,
both of you should change the log level to verbose to that you can see why the linker fails (and maybe post the linker output here again). After that, you should see that the TiAdView is causing the problems (that was the problem that we could find) because the iAd.framework was missing. Maybe a project clean helps after you have changed the linker flags for the simulator.
The WikitudeSDK is included in the module, so you don't have to copy the Wikitude SDK somewhere on the file system. It is included in the platform/iphone folder of the Wikitude module and the module is configured to look in the correct location during linking.
But please remember, although that your application will compile and link for the simualtor, the Wikitude SDK will only showing a black screen on the simulator because of the missing camera and sensors in the simulaltor.
Best regards
Andreas
F
Flavio Passa
said
about 10 years ago
Thanks for the reply.
The only way that I managed to run this sample in iOS simulator was to manually add the Framework to xcode project and run it from there. However I can't run it from Titanium IDE directly due its error.
On the other hands, even when I add the -framework iAd declartive in the module.xcconfig, every time that I hit Run on Titanium, of course, it replaces this file with the standard one without the iAd.
So, do I add the iAd framework in Titanium IDE in order to avoid this problem? How should I do that (where do I add it)?
Thanks and regards,
Flavio
F
Flavio Passa
said
about 10 years ago
Hi All,
This is the error that I have after activate trace log:
: Ld build/Debug-iphonesimulator/ModuleSamples.app/ModuleSamples normal i386
: cd /Users/fpassa/Documents/Titanium/WikitudSamples/WikitudeTitaniumSample/build/iphone
I experienced the same issue. It seems each scenario is slightly different but the way I fixed it was by:
Find the module.xcconfig file situated within the com.wikitude.ti directory where you extracted the module .zip file. Edit the line below to match where the framework and your TiSDK version is located on your machine:
The Wikitude Module is supposed to be dragged into a existing project and then extracted inside the project. If you install the module 'globally' on your machine, it might be necessary to edit the search path for the Wikitude SDK since it's reference is configured for a local project usage.
Best regards Andreas
C
Craig Jones
said
about 10 years ago
Hi Andreas,
Yes that's what I figured but this confuses quite a few Titanium Developers as we are used to extracting the .zip to our global module directory, for example: /Users//Library/Application Support/Titanium/modules/iphone etc..
It was only really figured out when using Xcode... which is never a pleasant experience to us TiDev's ;)
All working ok for me now apart from the Video examples.
A
Andreas Schacherbauer
said
about 10 years ago
Hi Craig, I wasn't aware of the fact that TiDev's prefer to use the global installation of modules. As long as two framework search paths will not result in unnecessary linker warnings, I will include both paths in the future to make the Wikitude Module integration as smooth as possible.
Are you aware of any additional possibility to include modules in the Titanium World (Studio)?
Best regards Andreas
C
Craig Jones
said
about 10 years ago
Hi Andreas,
It's not a problem as such, just that TiDev's (mainly newbies - sorry folks) who download modules from the Appcelerator Marketplace are instructed to extract the .zip to their global module directory as explained here - modules usually then run 'out of the box', they will be unaware to change the paths in the module.xcconfig file.
Many thanks
Craig
A
Andreas Schacherbauer
said
about 10 years ago
Hi Craig,
Thanks for pointing me to the link, I was always referring to this one.
I guess that most Modules also don't depend on any other library/framework than standard iOS ones, so there is no more configuration to be done since the iOS frameworkd don't require a specific search path.
So thanks again for your reply, I will keep it in mind for the next SDK/Module update which should be public in Q1 or maybe there will be a seperate Module release.
Best regards Andreas
C
Craig Jones
said
about 10 years ago
Hi Andreas,
I completely understand. Once upon a time when I was a TiDev newbie, adding modules to the global directory was a godsend because of ease of use amongst shared projects - I also got used to extracting *all* modules and implementing them this way.
However, I'm all grown up now and usually extract to the project root directory to avoid any conflicts with other modules.
This is how I became aware of the issue related to this forums post. Hope it helps clear up the **Build Failed** issue for some people.
Many thanks
Craig
G
Gsimone21892
said
about 10 years ago
Sorry but i'm a noob with TI what i need to do to solve the problem ? How can i install only the module for the single project ?
Chung Farn Kien