Some issue with PKRevealController pod while doing a clean build

67 views
Skip to first unread message

Ashish Upadhyay

unread,
Jul 8, 2014, 10:45:23 PM7/8/14
to rubym...@googlegroups.com
Hi ,

I am facing a strange issue.

If I do a rake clean & then rake I get this error while compilation of this pod

Where as if I comment the pod and build it goes fine, now if I uncomment the pod and try to build then too it builds fine.

So the issue is with a clean build.

Need some help on this ..

Thanks


2014-07-08 22:41:12.017 ruby[39252:d0f] unrecognized runtime type `{PKRevealController=#@@@@@@@@@@@@@@@@@@@@@@@@iii@@{CGSize=ff}{CGSize=ff}@@?i@{?=b2b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1}}' (TypeError)
2014-07-08 22:41:12.020 ruby[39252:d0f] *** Terminating app due to uncaught exception 'TypeError', reason: 'unrecognized runtime type `{PKRevealController=#@@@@@@@@@@@@@@@@@@@@@@@@iii@@{CGSize=ff}{CGSize=ff}@@?i@{?=b2b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1}}' (TypeError)
'
*** Call stack at first throw:
(
0   CoreFoundation                      0x91ec1471 __raiseError + 193
1   libobjc.A.dylib                     0x9452f091 objc_exception_throw + 162
2   ruby                                0x0017ca0a rb_vm_raise_current_exception + 506
3   ruby                                0x0017caf2 rb_vm_raise + 226
4   ruby                                0x00034991 rb_exc_raise + 17
5   ruby                                0x0002ddf2 rb_raise + 146
6   ruby                                0x001516b4 _ZN13RoxorCompiler12convert_typeEPKc + 708
7   ruby                                0x0013b8e4 _ZN13RoxorCompiler17compile_objc_stubEPN4llvm8FunctionEPFP11objc_objectS4_P13objc_selectorzERK13rb_vm_arity_tPKcb + 1940
8   ruby                                0x0013a3e7 _ZN16RoxorAOTCompiler22compile_prepare_methodEPN4llvm5ValueEP13objc_selectorbPNS0_8FunctionER13rb_vm_arity_tP5RNode + 5255
9   ruby                                0x0013883f _ZN13RoxorCompiler25compile_method_definitionEP5RNode + 447
10  ruby                                0x0015e583 _ZNSt6vectorIN13RoxorCompiler10MAsgnValueESaIS1_EEaSERKS3_ + 3395
11  ruby                                0x0015e9d4 _ZNSt6vectorIN13RoxorCompiler10MAsgnValueESaIS1_EEaSERKS3_ + 4500
12  ruby                                0x00149a60 _ZN13RoxorCompiler13compile_scopeEP5RNode + 6128
13  ruby                                0x0015e96d _ZNSt6vectorIN13RoxorCompiler10MAsgnValueESaIS1_EEaSERKS3_ + 4397
14  ruby                                0x00164823 _ZNSt6vectorIN13RoxorCompiler10MAsgnValueESaIS1_EEaSERKS3_ + 28643
15  ruby                                0x0015e9d4 _ZNSt6vectorIN13RoxorCompiler10MAsgnValueESaIS1_EEaSERKS3_ + 4500
16  ruby                                0x00149a60 _ZN13RoxorCompiler13compile_scopeEP5RNode + 6128
17  ruby                                0x0015e96d _ZNSt6vectorIN13RoxorCompiler10MAsgnValueESaIS1_EEaSERKS3_ + 4397
18  ruby                                0x00164823 _ZNSt6vectorIN13RoxorCompiler10MAsgnValueESaIS1_EEaSERKS3_ + 28643
19  ruby                                0x00149a60 _ZN13RoxorCompiler13compile_scopeEP5RNode + 6128
20  ruby                                0x0015e96d _ZNSt6vectorIN13RoxorCompiler10MAsgnValueESaIS1_EEaSERKS3_ + 4397
21  ruby                                0x0014cd25 _ZN16RoxorAOTCompiler21compile_main_functionEP5RNodePb + 741
22  ruby                                0x0017e580 rb_vm_aot_compile + 416
23  ruby                                0x000b49e0 ruby_process_options + 512
24  ruby                                0x00118798 main + 136
25  ruby                                0x00002235 start + 53
)
rake aborted!
Command failed with status (): [/usr/bin/env VM_PLATFORM="iPhoneSimulator"...]
/Library/RubyMotion/lib/motion/project/builder.rb:135:in `block (2 levels) in build'
/Library/RubyMotion/lib/motion/project/builder.rb:121:in `each'
/Library/RubyMotion/lib/motion/project/builder.rb:121:in `block in build'
/Library/RubyMotion/lib/motion/project/builder.rb:580:in `call'
/Library/RubyMotion/lib/motion/project/builder.rb:580:in `block (2 levels) in initialize'

Seth Deckard

unread,
Jul 9, 2014, 10:52:19 AM7/9/14
to rubym...@googlegroups.com
Ashish,
I ran into that same issue before, open up your vendor/Pods/Pods.bridgesupport file and comment out the following:

<method selector='state'>
<retval declared_type='PKRevealController' type='{PKRevealController=#@@@@@@@@@@@@@@@@@@@@@@@@iii@@{CGSize=ff}{CGSize=ff}@@?i@{?=b2b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1}}' type64='{PKRevealController=#@@@@@@@@@@@@@@@@@@@@@@@@qqq@@{CGSize=dd}{CGSize=dd}@@?q@{?=b2b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1}}'/>
</method>
<method selector='type'>
<retval declared_type='PKRevealController' type='{PKRevealController=#@@@@@@@@@@@@@@@@@@@@@@@@iii@@{CGSize=ff}{CGSize=ff}@@?i@{?=b2b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1}}' type64='{PKRevealController=#@@@@@@@@@@@@@@@@@@@@@@@@qqq@@{CGSize=dd}{CGSize=dd}@@?q@{?=b2b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1}}'/>
</method>

It should compile fine after that. It is a bug in RubyMotion and is supposed to be fixed eventually.

Seth

Ashish Upadhyay

unread,
Jul 10, 2014, 6:19:21 PM7/10/14
to rubym...@googlegroups.com
I edited the .h file and commented the typedef enum for NSUInteger, that too worked

Watson

unread,
Jul 11, 2014, 4:00:16 AM7/11/14
to rubym...@googlegroups.com

Ashish Upadhyay

unread,
Jul 11, 2014, 8:48:34 AM7/11/14
to rubym...@googlegroups.com
Yes I used the same.

Thanks Watson
Reply all
Reply to author
Forward
0 new messages