jackba / tibar

Automatically exported from code.google.com/p/tibar
0 stars 0 forks source link

Mobile SDK 1.6 is out #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Will try out some tests with the new SDK and report back the results

Original issue reported on code.google.com by yankees2...@gmail.com on 24 Feb 2011 at 4:09

GoogleCodeExporter commented 9 years ago
works on simulator and ios 4.3

Original comment by spalatn...@gmail.com on 24 Feb 2011 at 5:06

GoogleCodeExporter commented 9 years ago
Good to hear that it is working with new SDK, thanks for testing.

Original comment by lukasz.r...@gmail.com on 24 Feb 2011 at 7:29

GoogleCodeExporter commented 9 years ago
works for me either with ios 4.2

Original comment by sebastia...@gmail.com on 28 Feb 2011 at 10:50

GoogleCodeExporter commented 9 years ago
would someone be able to help me get my app working on 4.3?

I created it with Titanium module 0.1.  I can't get the 0.4.1 example app to 
compile.

Thanks!

Original comment by jhalljh...@gmail.com on 12 Mar 2011 at 3:59

GoogleCodeExporter commented 9 years ago
@jhall

Pleading for help isn't really useful if you don't provide anyone with any 
clues what went wrong. Please post the steps you took, errors that occured, etc.

Original comment by yankees2...@gmail.com on 12 Mar 2011 at 5:16

GoogleCodeExporter commented 9 years ago
@yankees2

Thanks for your reply.

I didn't want to flood this thread with a list of things that are not relevant. 
 If you can help, tell me why I can't compile my local TiBarReaderApp.0.4.1 
with the module tibar 0.4.2 using Titanium 1.2.2 (SDK 1.6) targeting 4.1, 4.2, 
4.3 iOS?

When I comment out the <module> node from tiapp.xml the app compiles.  When the 
<module> node is included I get the same error over and over.

I've deleted the build files from build/iphone.  Uninstalled and re-installed 
Xcode, Titanium, and created a new project (where I could copy the old code to 
the new code), and I get the same error.

It seems to be a generic error from Titanium as I've searched and found many 
references to it with different causes and different fixes across Titanium 
versions and SDKs.

Any guidance or help is appreciated.

Thanks!

jhall

Original comment by jhalljh...@gmail.com on 13 Mar 2011 at 4:42

GoogleCodeExporter commented 9 years ago
I found that adding the *.framework and libiconv.dylib then compiling through 
Xcode fixes almost all issues. I have an app running at 1.6.1 and using tibar 
0.4.2 working also I have the barcode reader app working at 1.6.1 but once 
again I don't really build through the Ti Developer GUI Appcelerator provides.

Original comment by bhuenefe...@gmail.com on 19 Mar 2011 at 4:16

GoogleCodeExporter commented 9 years ago
Thanks for the reply @bhuenefe.

So I would add the framework files and libiconv.dylib and compile thru Xcode 
after I've compiled (and failed) thru Titanium?

I tried something like that from previous post and I didn't get an error, but 
the app didn't work when I brought up a camera for scanning.

I'll try it out and report back what I find.

Thanks!

JDH

Original comment by jhalljh...@gmail.com on 19 Mar 2011 at 4:21

GoogleCodeExporter commented 9 years ago
I'm really sorry for the double post and it isn't my intention to spam your 
emails.

After I build in Xcode on the Sim or Device once I can then do the sim nth 
times with no errors but when building for the phone I always have to use Xcode.

Original comment by bhuenefe...@gmail.com on 19 Mar 2011 at 4:30

GoogleCodeExporter commented 9 years ago
OK.  Thank you!  NP on the dbl post.

JDH

Original comment by jhalljh...@gmail.com on 19 Mar 2011 at 4:33

GoogleCodeExporter commented 9 years ago
I'm using Titanium SDK 1.6.1, iOS SDK 4.2 and TiBar 0.4.2

and I receive the following error when I compile the code:

[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Users/andreas/Library/Application 
Support/Titanium/mobilesdk/osx/1.6.0/iphone/builder.py", line 1003, in main
execute_xcode("iphonesimulator%s" % 
link_version,["GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=%s 
DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s" % 
(log_id,sdk_version)],False)
File "/Users/andreas/Library/Application 
Support/Titanium/mobilesdk/osx/1.6.0/iphone/builder.py", line 924, in 
execute_xcode
output = run.run(args,False,False,o)
File "/Users/andreas/Library/Application 
Support/Titanium/mobilesdk/osx/1.6.0/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 1

I have no problems when I'm using Titanium SDK 1.5.1, iOS SDK 4.2 and TiBar 
0.4.2

I have performed a full rebuild, by deleting the content of the iphone folder 
but it does not work too.

Any Idea whats the problem?

Regards
Andreas

Original comment by coma...@gmail.com on 26 Mar 2011 at 2:30

GoogleCodeExporter commented 9 years ago
you need to add the frameworks and libiconv in Xcode then build in it once. 
Then you should be able to do the simulator in Xcode or Ti Dev but you won't be 
able to build to the phone in anything but Xcode because Ti Dev rewrites files 
that need to stay unwritten.

I've heard of success before using the modul.xconfig files but that's way over 
my pay grade so I just use Xcode to do the device testing.

Original comment by bhuenefe...@gmail.com on 26 Mar 2011 at 5:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The correct way to fix this is to add these to your module.xconfig file. This 
will make it so the correct frameworks are automatically linked in when 
including the module in a project.

Original comment by netpr...@gmail.com on 15 Apr 2011 at 3:22

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
@netpr : bingo! that worked!  thanks!

Original comment by kos...@gmail.com on 30 Apr 2011 at 7:17

GoogleCodeExporter commented 9 years ago
Hey guys,

I'm using Titanium SDK version 1.6.2, Xcode 4, and iOS 4.2. This is the error I 
am getting when trying to compile ([ERROR] Script Error = Couldn't find module: 
tibar.):

[INFO] Compiling JavaScript...one moment
[INFO] No JavaScript errors detected.
[INFO] One moment, building ...
[DEBUG] Detecting modules in /Users/sherif/projects/TestProject/modules
[DEBUG] Detecting modules in /Library/Application Support/Titanium/modules
[DEBUG] Detected module for iphone: tibar 0.4.2 @ /Library/Application 
Support/Titanium/modules/iphone/tibar/0.4.2
[INFO] Titanium SDK version: 1.6.2
[INFO] iPhone Device family: iphone
[INFO] iPhone SDK version: 4.2
[INFO] iPhone simulated device: iphone
[DEBUG] executing command: /usr/bin/killall iPhone Simulator
[DEBUG] No matching processes belonging to you were found
[DEBUG] finding old log files
[DEBUG] executing command: mdfind -onlyin /Users/sherif/Library/Application 
Support/iPhone Simulator/4.2 -name 168b8125-e419-4e04-b817-397a3ded49a6.log
[DEBUG] /Users/sherif/Library/Application Support/iPhone 
Simulator/4.2/Applications/E34C8899-AD32-40F9-81A5-7F1278C28B1A/Documents/168b81
25-e419-4e04-b817-397a3ded49a6.log
[DEBUG] removing old log file: /Users/sherif/Library/Application Support/iPhone 
Simulator/4.2/Applications/E34C8899-AD32-40F9-81A5-7F1278C28B1A/Documents/168b81
25-e419-4e04-b817-397a3ded49a6.log
[INFO] Launching application in Simulator
[DEBUG] App Spec: <DTiPhoneSimulatorApplicationSpecifier 0x100303990> specified 
by path 
/Users/sherif/projects/TestProject/build/iphone/build/Debug-iphonesimulator/Test
Project.app
[DEBUG] SDK Root: <DTiPhoneSimulatorSystemRoot 0x1003018e0> 
path=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulato
r4.2.sdk version=4.2 name=Simulator - iOS 4.2
[DEBUG] using device family iphone
[INFO] Launched application in Simulator (2.10 seconds)
[DEBUG] Session started
[DEBUG] executing command: xcodebuild -version
[DEBUG] Xcode 4.0.2
[DEBUG] Build version 4A2002a
[INFO] Application started
[DEBUG] reading stylesheet from: /Users/sherif/Library/Application 
Support/iPhone 
Simulator/4.2/Applications/E34C8899-AD32-40F9-81A5-7F1278C28B1A/TestProject.app/
stylesheet.plist
[INFO] TestProject/1.0 (1.6.2.878906d)
[DEBUG] Analytics is enabled = YES
2011-05-06 21:40:57.405 TestProject[11278:207] [DEBUG] Reachability Flag Status 
Change: -R -----l- networkStatusForFlags
[DEBUG] loading: /Users/sherif/projects/TestProject/Resources/app.js, resource: 
Users/sherif/projects/TestProject/Resources/app_js
[DEBUG] loading: /Users/sherif/projects/TestProject/Resources/tibar.js, 
resource: Users/sherif/projects/TestProject/Resources/tibar_js
[ERROR] Script Error = Couldn't find module: tibar.
[DEBUG] application booted in 33.411980 ms
2011-05-06 21:41:02.411 TestProject[11278:1d07] [DEBUG] Reachability Flag 
Status Change: -R -----l- networkStatusForFlags

Unfortunately, updating module.xconfig didn't help.

Would appreciate your help on this.

Thanks!

Original comment by s.elraka...@gmail.com on 6 May 2011 at 7:36

GoogleCodeExporter commented 9 years ago
did you put the <module> node in the tiapp.xml?

Original comment by bhuenefe...@gmail.com on 6 May 2011 at 7:40

GoogleCodeExporter commented 9 years ago
Yes, I did. It's actually saying 

[DEBUG] Detected module for iphone: tibar 0.4.2 @ /Library/Application 
Support/Titanium/modules/iphone/tibar/0.4.2

Original comment by s.elraka...@gmail.com on 6 May 2011 at 8:05

GoogleCodeExporter commented 9 years ago
strange, however that DEBUG line loads based on if the module directory is 
found, not if it's included in the tiapp.xml

Original comment by bhuenefe...@gmail.com on 6 May 2011 at 8:14

GoogleCodeExporter commented 9 years ago
Found the error .. the editor seems to have crashed and recovered an old 
version of tiapp.xml (not containing the <module> node).

Thanks for your quick feedback!

Original comment by s.elraka...@gmail.com on 6 May 2011 at 8:33

GoogleCodeExporter commented 9 years ago
I seem to still have the same problem. I have added the module in tiapp.xml and 
also the module.xcconfig. Here is the debug:

INFO] Compiling JavaScript...one moment
[INFO] No JavaScript errors detected.
[INFO] One moment, building ...
[DEBUG] Detecting modules in 
/Users/jsi/Documents/Titanium/demos/qrcode/qrcode/modules
[DEBUG] Detecting modules in /Library/Application Support/Titanium/modules
[DEBUG] Looking for Titanium Module id: tibar, version: 0.4.2, platform: <any 
platform>
[INFO] Titanium SDK version: 1.6.2
[INFO] iPhone Device family: iphone
[INFO] iPhone SDK version: 4.3
[INFO] iPhone simulated device: iphone
[DEBUG] executing command: /usr/bin/killall iPhone Simulator
[DEBUG] No matching processes belonging to you were found
[DEBUG] finding old log files
[DEBUG] executing command: mdfind -onlyin /Users/jsi/Library/Application 
Support/iPhone Simulator/4.3 -name 334583c6-278b-4943-a8cb-58ae835bdb71.log
[DEBUG] /Users/jsi/Library/Application Support/iPhone 
Simulator/4.3/Applications/8BA9DA62-1B3D-4E62-874B-089A7A25270F/Documents/334583
c6-278b-4943-a8cb-58ae835bdb71.log
[DEBUG] removing old log file: /Users/jsi/Library/Application Support/iPhone 
Simulator/4.3/Applications/8BA9DA62-1B3D-4E62-874B-089A7A25270F/Documents/334583
c6-278b-4943-a8cb-58ae835bdb71.log
[INFO] Launching application in Simulator
[DEBUG] App Spec: <DTiPhoneSimulatorApplicationSpecifier 0x10011bf50> specified 
by path 
/Users/jsi/Documents/Titanium/demos/qrcode/qrcode/build/iphone/build/Debug-iphon
esimulator/qrcode.app
[DEBUG] SDK Root: <DTiPhoneSimulatorSystemRoot 0x10011a7f0> 
path=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulato
r4.3.sdk version=4.3 name=Simulator - iOS 4.3
[DEBUG] using device family iphone
[INFO] Launched application in Simulator (3.33 seconds)
[DEBUG] executing command: xcodebuild -version
[DEBUG] Session started
[DEBUG] Xcode 3.2.6
[DEBUG] Component versions: DevToolsCore-1809.0; DevToolsSupport-1806.0
[DEBUG] BuildVersion: 10M2518
[INFO] Application started
[DEBUG] reading stylesheet from: /Users/jsi/Library/Application Support/iPhone 
Simulator/4.3/Applications/8BA9DA62-1B3D-4E62-874B-089A7A25270F/qrcode.app/style
sheet.plist
[INFO] qrcode/1.0 (1.6.2.878906d)
[DEBUG] Analytics is enabled = YES
2011-05-06 23:54:49.662 qrcode[88073:207] [DEBUG] Reachability Flag Status 
Change: -R t----l- networkStatusForFlags
[DEBUG] loading: 
/Users/jsi/Documents/Titanium/demos/qrcode/qrcode/Resources/app.js, resource: 
Users/jsi/Documents/Titanium/demos/qrcode/qrcode/Resources/app_js
[DEBUG] loading: 
/Users/jsi/Documents/Titanium/demos/qrcode/qrcode/Resources/tibar.js, resource: 
Users/jsi/Documents/Titanium/demos/qrcode/qrcode/Resources/tibar_js
[ERROR] Script Error = Couldn't find module: tibar.
[DEBUG] application booted in 60.795963 ms
2011-05-06 23:54:54.692 qrcode[88073:1a07] [DEBUG] Reachability Flag Status 
Change: -R t----l- networkStatusForFlags

Any ideas?

Original comment by jose.sim...@mobitto.com on 6 May 2011 at 10:56

GoogleCodeExporter commented 9 years ago
[DEBUG] Detected module for iphone: tibar 0.4.2 @ /Library/Application 
Support/Titanium/modules/iphone/tibar/0.4.2

If that line isn't showing up in the DEBUG then the module isn't being found in 
that folder.

Original comment by bhuenefe...@gmail.com on 6 May 2011 at 11:03

GoogleCodeExporter commented 9 years ago
Thanks. In my modules I had osx. Now I added iphone and put the tibar and it is 
running :) Thanks!

Original comment by jose.sim...@mobitto.com on 6 May 2011 at 11:43

GoogleCodeExporter commented 9 years ago
I have added a line into 
/Library/Application\ 
Support/Titanium/modules/iphone/tibar/0.4.2/module.xcconfig

OTHER_LDFLAGS=$(inherited) -framework AVFoundation -framework CoreMedia 
-framework CoreVideo -framework QuartzCore /usr/lib/libiconv.dylib

Rainer

Original comment by goo...@webmasterei-hamburg.de on 19 May 2011 at 4:31