Closed andersennl closed 10 years ago
Hi @andersennl ! In ProMotion < 2.0.0, PM::MapScreen
is built into ProMotion, so you don't need the ProMotion-map
gem.
However, if you'd like to use ProMotion 2.0, I'd encourage you to try it out. It's much lighter and faster.
gem "ProMotion", github: "clearsightstudio/ProMotion", branch: "pm2"
Let me know how it goes!
Hi @jamonholmgren , thanks for the response. Sorry I'm late to respond, I couldn't check until now. I guess I've misunderstood the note in the readme which says that the maps part has been extracted. I thought it isn't available in the main gem anymore. I thought this as well because then I didn't include the ProMotion-map
gem into my gem file, I had an error that the app couldn't find the maps part of the gem. I'm not entirely sure about what the error message was, though. I'll write it here on saturday :)
Thanks for the tip with the new version, I'm first able to try on saturday, though. Does the "old" documentation apply to version 2 as well? Or are there some hidden new undocumented features I should try? ;) Thank you very much for your help!
Weird, yeah, definitely post the error here. I'll reopen this issue in anticipation of your error.
Regarding documentation: that's next on our list and we'll be doing an exhaustive overhaul of the wiki. PM 2.0 is very imminent to launch and basically just waiting on docs. You can find a pretty good list of the changes in the pm2
README: https://github.com/clearsightstudio/ProMotion/blob/pm2/README.md
Sorry for the long waiting time, I'm now back at my macbook. Here is the error I get when opening the map screen with only the current ProMotion gem installed:
map_screen_module.rb:7:in `screen_setup': uninitialized constant ProMotion::MapScreenModule::MKMapView (NameError)
from screen_module.rb:23:in `on_create:'
from view_controller.rb:5:in `new:'
from screen_navigation.rb:93:in `set_up_screen_for_open:'
from screen_navigation.rb:8:in `open_screen:'
from home_screen.rb:71:in `open_map'
2014-06-14 15:10:55.870 myapp[11386:70b] *** Terminating app due to uncaught exception 'NameError', reason: 'map_screen_module.rb:7:in `screen_setup': uninitialized constant ProMotion::MapScreenModule::MKMapView (NameError)
from screen_module.rb:23:in `on_create:'
from view_controller.rb:5:in `new:'
from screen_navigation.rb:93:in `set_up_screen_for_open:'
from screen_navigation.rb:8:in `open_screen:'
from home_screen.rb:71:in `open_map'
'
*** First throw call stack:
(
0 CoreFoundation 0x030f91e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x013208e5 objc_exception_throw + 44
2 myapp 0x00cbf36a _ZL10__vm_raisev + 346
3 myapp 0x00cbf448 rb_vm_raise + 216
4 myapp 0x00bc29b1 rb_exc_raise + 17
5 myapp 0x00bbc1f7 rb_name_error + 135
6 myapp 0x00c77dc5 rb_mod_const_missing + 165
7 myapp 0x00cb41cd _ZL20dispatch_rimp_callerPFP11objc_objectS0_P13objc_selectorzEmS1_iPKm + 46445
8 myapp 0x00c9abea rb_vm_dispatch + 6554
9 myapp 0x00c78c36 rb_const_get_0 + 1046
10 myapp 0x00c78d30 rb_const_get + 32
11 myapp 0x00cb7312 rb_vm_const_lookup_level + 338
12 myapp 0x0075b003 vm_get_const + 227
13 myapp 0x00763c08 rb_scope__screen_setup__ + 248
14 myapp 0x00cb41cd _ZL20dispatch_rimp_callerPFP11objc_objectS0_P13objc_selectorzEmS1_iPKm + 46445
15 myapp 0x00c9abea rb_vm_dispatch + 6554
16 myapp 0x006eb71c vm_dispatch + 1100
17 myapp 0x006f52b5 rb_scope__on_create:__ + 2005
18 myapp 0x00cb41cd _ZL20dispatch_rimp_callerPFP11objc_objectS0_P13objc_selectorzEmS1_iPKm + 46445
19 myapp 0x00c9abea rb_vm_dispatch + 6554
20 myapp 0x0069256c vm_dispatch + 1100
21 myapp 0x0069a852 rb_scope__new:__ + 626
22 myapp 0x00cb41cd _ZL20dispatch_rimp_callerPFP11objc_objectS0_P13objc_selectorzEmS1_iPKm + 46445
23 myapp 0x00c9abea rb_vm_dispatch + 6554
24 myapp 0x006c9d6c vm_dispatch + 1100
25 myapp 0x006d41ed rb_scope__set_up_screen_for_open:__ + 237
26 myapp 0x00cb41cd _ZL20dispatch_rimp_callerPFP11objc_objectS0_P13objc_selectorzEmS1_iPKm + 46445
27 myapp 0x00c9abea rb_vm_dispatch + 6554
28 myapp 0x006c9d6c vm_dispatch + 1100
29 myapp 0x006d208a rb_scope__open_screen:__ + 474
30 myapp 0x00cb41cd _ZL20dispatch_rimp_callerPFP11objc_objectS0_P13objc_selectorzEmS1_iPKm + 46445
31 myapp 0x00c9abea rb_vm_dispatch + 6554
32 myapp 0x00b5265c vm_dispatch + 1100
33 myapp 0x00b5c43d rb_scope__open_map__ + 285
34 myapp 0x00b5c46b __unnamed_24 + 27
35 libobjc.A.dylib 0x01332880 -[NSObject performSelector:withObject:withObject:] + 77
36 UIKit 0x0215f3b9 -[UIApplication sendAction:to:from:forEvent:] + 108
37 UIKit 0x0215f345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
38 UIKit 0x02260bd1 -[UIControl sendAction:to:forEvent:] + 66
39 UIKit 0x02260fc6 -[UIControl _sendActionsForEvents:withEvent:] + 577
40 UIKit 0x02260243 -[UIControl touchesEnded:withEvent:] + 641
41 UIKit 0x0219eddd -[UIWindow _sendTouchesForEvent:] + 852
42 UIKit 0x0219f9d1 -[UIWindow sendEvent:] + 1117
43 UIKit 0x021715f2 -[UIApplication sendEvent:] + 242
44 UIKit 0x0215b353 _UIApplicationHandleEventQueue + 11455
45 CoreFoundation 0x0308277f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
46 CoreFoundation 0x0308210b __CFRunLoopDoSources0 + 235
47 CoreFoundation 0x0309f1ae __CFRunLoopRun + 910
48 CoreFoundation 0x0309e9d3 CFRunLoopRunSpecific + 467
49 CoreFoundation 0x0309e7eb CFRunLoopRunInMode + 123
50 GraphicsServices 0x04cd55ee GSEventRunModal + 192
51 GraphicsServices 0x04cd542b GSEventRun + 104
52 UIKit 0x0215df9b UIApplicationMain + 1225
53 myapp 0x000041bc main + 156
54 libdyld.dylib 0x045e9701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NameError
((null))>
Can you post your gem file here? Just want to rule everything out before we tart troubleshooting more in depth.
Sure, let me know if I can provide anything else.
source 'https://rubygems.org'
gem 'rake'
gem "ProMotion", "~> 1.1.0"
gem 'motion-layout'
gem 'ruby_motion_query'
gem "bubble-wrap", "~> 1.5.0"
gem 'sugarcube', :require => 'sugarcube-all'
gem 'cdq'
gem 'ruby-xcdm'
Hey @andersennl, make sure that you're including MapKit
in your rakefile as a framework dependency. That may fix the issue with ProMotion 1.x.
app.frameworks += ['MapKit']
That was it, I forgot to add it. Sorry for the trouble. Thanks a lot!
Awesome! FYI, when using pm2
and ProMotion-map
, it should add it for you automatically.
Hi, I was just about to try the ProMotion-map gem but ran into an error while doing the bundle install.
Here is my gemfile:
And here is the terminal output:
I tried to alter the gemfile use
"ProMotion", "~> 2.0.0"
but that didn't work. What am I missing here?Thank you very much!