Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to get either android or ios to run with ti sdk 3.5.0 or 4.0.0.GA #1

Open
Sophrinix opened this issue Jul 20, 2015 · 2 comments

Comments

@Sophrinix
Copy link

What is the last known good version of Titanium SDK that this hook worked with?

When I try to launch it on iOS I am forced to add to tiapp.xml inside the <ios> node

                <array>
                    <string>fetch</string>
                    <string>remote-notification</string>
                </array>

once I do that, I am presented with

[TRACE] Undefined symbols for architecture x86_64:
[TRACE]   "_Ti_WTFCrash", referenced from:
[TRACE]       TiDebuggerInterface::resetObjectProperty(int, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in libti_ios_debugger.a(TiDebuggerInterface.o)
[TRACE] ld: symbol(s) not found for architecture x86_64
[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/Example.build/Debug-iphonesimulator/Example-universal.build/Objects-normal/x86_64/Example normal x86_64
[ERROR] (1 failure)

on android, the app never launches. Thanks for writing this ti-cli hook.

@Sophrinix
Copy link
Author

additional researched revealed that this is an Appcelerator issue. Please keep this issue open until titanium 4.3.1 is released -- unless one of us decides to backport Appcelerator's fix for this module.

https://jira.appcelerator.org/browse/TIMOB-18873

@Sophrinix
Copy link
Author

This works again. However I notice that the actual packaged module is not correctly merging the arm symbol tables and X86_64 symbol tables into a single .a

otool -hv /Users/andrewmcelroy/repos/TiStats/iphone/build/libbe.k0suke.tistats.a
Archive : /Users/andrewmcelroy/repos/TiStats/iphone/build/libbe.k0suke.tistats.a
/Users/andrewmcelroy/repos/TiStats/iphone/build/libbe.k0suke.tistats.a(BeK0sukeTistatsModule.o):
Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64  X86_64        ALL  0x00      OBJECT     4       2192 SUBSECTIONS_VIA_SYMBOLS
/Users/andrewmcelroy/repos/TiStats/iphone/build/libbe.k0suke.tistats.a(TiRootViewController+Stats.o):
Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64  X86_64        ALL  0x00      OBJECT     4       2352 SUBSECTIONS_VIA_SYMBOLS
/Users/andrewmcelroy/repos/TiStats/iphone/build/libbe.k0suke.tistats.a(BeK0sukeTistatsModuleAssets.o):
Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64  X86_64        ALL  0x00      OBJECT     4       1872 SUBSECTIONS_VIA_SYMBOLS

I'll look into why this is the case this weekend. Once that is resolved, then this appears to be fully working again. Awesome project. Thanks for making it open source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant