Discussion Forums  >  Self Hosted Control Panels

Replies: 9    Views: 107

UniApps
Aspiring developer
Profile
Posts: 124
Reg: Apr 21, 2012
An American in ...
5,940
11/28/12 07:42 AM (13 years ago)

Xcode found 3 errors

I've been holding off on posting this. My Map App works in Android (except for the data refresh issue which I have posted in another thread). The same IOS project, in Xcode produces three Semantic errors in BT-screen_map.m. It says a java code line referring to Map is wrong, and suggests a fix. mapItemClass = [MKMapItem (says unknown receiver). suggested fix: mapItemClass = [MKMapView My BT App is very simple: A simple menu, email and Map. I made the fix, now Simulator says there are no screens to display. But it is the same config.txt file that is running on Android, with correct Screens. In 2 Map Apps. Xcode is not even addressing the config.txt file, So I'm looking back to the error in the downloaded project BT-screen_map.m file. I don't know what to do next... where to look?
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
11/28/12 03:44 PM (13 years ago)
This is using BT 2.0 to build app correct?
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
11/28/12 03:47 PM (13 years ago)
Also is Xcode and IOS 6 up to date?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/28/12 03:59 PM (13 years ago)
Hi UniApps: Sounds frustrating...I totally get it. This stuff can drive anyone crazy sometimes! It sounds like a few different things are going on. The Refresh issue you mentioned (with Android) has been fixed and I posted on the other thread about that. Next: No screens to display. It sounds like you understand the relationship between the config.txt file and the project. But, it also sounds like maybe the app is parsing / reading a different config.txt file than you expect. There are only three places this data can come from. 1) The project itself. This is the one you see in Eclipse. 2) The device. The device may have downloaded and cached a newer version of this data. 3) Online, then cached like in #2. In all of these cases, regardless of where the data is coming from, the LogCat will show you what file it's using. It can get super confusing...for sure. Here's how it works: 1) App launches and reads file in Eclipse project. It reads this file on every launch, regardless of whether or a newer version is in the devices cache or not. 2) It looks in the cache on the device. If a newer version is found, it must have downloaded it from the dataURL previously. In this case, it uses this cached file and ignores the file in the project. 3) No cached file is found, but a dataURL is present in the baked in config.txt file. In this case, it may or may not fetch a new version from the URL at the dataURL. When it does this depends on a few things. It sounds to me like maybe the file it's using is coming from the devices cache and may not be complete or correct or something? Hard to say. "In 2 Map Apps. Xcode is not even addressing the config.txt file" I'm not sure how this could be happening? Xcode and iOS do the same type of logic as Eclipse and Android. Look at the file baked in, look at cache, etc. I think we have two things going on here. Where is the data it's using and what's up with the map errors you're seeing. I don't think these are related. Even if the map had issues, the project would not show "no screens to display." That only happens when it can't find any screens in the config. Back to the maps issue: When I compile I get no errors and no warnings and I'm including the standard map plugin you're using in my project. I have the Deployment Target set to iOS 3.0. This is the recommended way to compile your project so it works on the most number of devices. However, if I set the deployment target to 6.0 then Clean > Build. I see lots of deprecated warnings. Dozens of them. This is expected. When we eventually recommend folks compile for Deployment Targets higher than 3.0 we'll get those ironed out. These are not erros (red) they are warnings (yellow). This is the compiler's way of saying "Hey developer, these methods you're using are still supported but deprecated and will not work anymore after some future date." When that is is hard to know. For sure there are tons of changes in the UIMapKit class Apple provides us developers but it works well if you compile for the 3.0 Deployment Target. Not sure what it does if you compile for later targets. Dunno. Hope this didn't confuse the issue?
 
UniApps
Aspiring developer
Profile
Posts: 124
Reg: Apr 21, 2012
An American in ...
5,940
like
11/28/12 04:00 PM (13 years ago)
Not exactly current. Software update didn't find it because Apple moved it, per https://developer.apple.com/xcode/ . I was at 4.4.1. It says it is Installing 4.5... however, I do not believe the err is due to Version.
 
UniApps
Aspiring developer
Profile
Posts: 124
Reg: Apr 21, 2012
An American in ...
5,940
like
11/28/12 04:18 PM (13 years ago)
After I edited BT-screen_map.m in Xcode, iOS (iPhone 5.1) Simulator reported the "no screens to display" error. After the Xcode update is installed, I'll try again.
 
UniApps
Aspiring developer
Profile
Posts: 124
Reg: Apr 21, 2012
An American in ...
5,940
like
11/29/12 03:08 AM (13 years ago)
David: Did you try to replicate the Xcode semantic error(s) I got? Make a new project with a menu and a map. (My Internet here in SW England is not stable enough right now to complete the Xcode update from the App Store). I don't see where updating Xcode is going to change its finding a semantic error in BT-screen_map.m . It says a java code line referring to Map is wrong, and suggests a fix. mapItemClass = [MKMapItem (says unknown receiver). suggested fix: mapItemClass = [MKMapView
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/30/12 12:30 AM (13 years ago)
Hi UniApps: Yup, made all kinds of test project. I do not see that message from Xcode. This is strange for sure. To be sure: I'm using... Xcode 4.5.2 Target > Summary > Deployment Target: 3.0 Target > Build Settings > iOS Deployment Target: 3.0 Target > Build Settings > Valid Architectures: armv7 armv7S Have not idea what else to recommend?
 
UniApps
Aspiring developer
Profile
Posts: 124
Reg: Apr 21, 2012
An American in ...
5,940
like
11/30/12 04:02 AM (13 years ago)
...Hate to be unappreciative of the info, but there;s no menu item called "Target"... I am leery of hacking around in Xcode looking for Something > MAYBE SOMETHING MORE > Target > ... Which may or may not be what you are referring to above. I did download Xcode 4.5.2. Internet is good this morning, took a half-hour. Been spending an hour looking for Something > Target >
 
UniApps
Aspiring developer
Profile
Posts: 124
Reg: Apr 21, 2012
An American in ...
5,940
like
11/30/12 04:29 AM (13 years ago)
With Xcode 4.5.2, the three java Semantic errors are no longer being reported. However, the iOS 6 Simulator says "no screens" just as iOS Simulator 5.1 did. Same App project, same config.txt file that runs on Eclipse Emulator and is working on Android phone - all menus and maps. I wish I knew if it truly meant "no" screens...
 

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.