richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
08/10/14 12:01 AM (10 years ago)

Offlline MapKit Errors

Hi Smug Already posted one in Eclipse. But I tried 3 times with Xcode first and I have gone over your install PDF at least 4 times. On run the project I get 4 errors again and again. 1)RMMBTileSource.h not found and the message is in that file so no idea what that is about. 2)SW_offlineMapKit.m RMMapView.h not found - sure enough it's not there. 3 & 4 Are very long links that can't be read errors. 3 is AppleMach-O Linker Error and 4 Dysmutil Error. I have no idea about number 3 but 4 I'm pretty sure is to do with the simulator.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/10/14 04:14 AM (10 years ago)
It should work in the iOS simulator just fine. Although iOS is a bit tedious compared to Android. So, 'where are' SW_offlineMapKit.m and RMMapView.h? Did you add the plugins to the project into the project while it was running? Did you get the dialog box? Was 'copy' checked? Cheers! -- Smug
 
richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
like
08/10/14 04:22 AM (10 years ago)
I made a simple menu app and just added a test map with your plugin. I added your test map swolmk.mbtile then I downloaded IOS project and opened Xcode with the test program. I then added the map to the BT docs made all the changes according to your PDF then, after numerous cleans along the way, tried to compile it and got build failed and those error messages. Should I have just made the app then added your plugin?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/10/14 04:34 AM (10 years ago)
That would depend if you added the plugin correctly, lol! if you did, it won't matter. If you didn't, you might... :) Does it *crash* or does it just not display, because the swomlk file is like, levels 0-4, and the mapView still wants to open at level 10, so it might not be completely visible unless you zoom out. But things like adding the other project, setting your dependancy libraries and stuff; that has to be done just right otherwise it will not work. If you're adding the plugin to an existing project, remember that 'BT_appDelegate' will need to be renamed to yourAppName_appDelegate, and little things like that... Let me know what you're still having issues with. Once you get it down, it's pretty simple. But getting it down can be a challenge if you're not used to it. Don't worry; we'll get through it. Cheers! -- Smug
 
richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
like
08/10/14 04:59 AM (10 years ago)
The build fails so it won't open the simulator to let me zoom out. I will try again. I'm sure it's something simple. Thanks Richard
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/10/14 05:00 AM (10 years ago)
Let me know if there is something I can do... I'll be up for about another hour or so... Cheers! -- Smug
 
richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
like
08/10/14 05:48 AM (10 years ago)
Ok. My biggest mistake was adding /Mapstuff** and not ./MapStuff** That seemed to have fixed everything except it says the plugin is missing when I compile. But at least it compiled and a simulator arrived :) I made the simple app then added the plugin whilst Xcode was running but I don't think the plugin has been added to the project. There are 4 items listed in the BT_screen_MenuSimple folder in the Plugins folder.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/10/14 06:44 AM (10 years ago)
Header paths will do that to you. Glad you found it! :) Usually 'missing' plugins can be either config file, code, or actual missing plugin, either as a result of not being there, or 'being there', but not actually 'added' to the project. Make sure your config file is current. I regularly copy a fresh config file from my control panel, run it through jsonlint to make it pretty, and overwrite my existing config file. It makes it easier to "see" what's going on and trace steps as you troubleshoot. I'm about to head off to bed, but if you get stuck, leave a note and I'll tend to it in the morning. Oh, and did you get your Android issues worked out? Cheers! -- Smug
 
richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
like
08/10/14 07:21 PM (10 years ago)
Hi Smug The config file in Xcode was missing the whole offline mapkit code so I cut and paste the whole thing from BT_config into Xcode cleaned the project and still the simulator says plugin missing.
 
richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
like
08/10/14 10:38 PM (10 years ago)
Yes the plugin is completely missing can I add it manually ? (Doing test apps)
 
richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
like
08/11/14 12:01 AM (10 years ago)
Got it working!!! (on IOS anyway) Well, sort of :) The map I made is far too big and won't zoom in as I only had 4 levels ticked. Going to make some new maps now.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/11/14 06:58 AM (10 years ago)
Sorry I came to the party so late. Glad you got it going! Cheers! -- Smug
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.