I have a simple map application using openStreetMap that works well on all iPhone simulators ( xcode 6.1, IOS 7.1 & 8.1 ). However, when I compile on a real device (iPhone 4 iOS 7.1), I encounter some issues (see screenshot), the application doesn't recognize some classes, such as MKTileOverlay, MKOverlayRender, etc.
The weirdest thing is that it worked a few weeks ago, then, after I worked on another project, when I come back to this one, the problem appeared.
Maybe the problem is coming from Xcode or the device's configuration?
I searched for several days, without success, so could someone tell me where I went wrong?
Sorry I couldn't post a screenshot, I hadn't enought point from you guys ^^! I did delete the framework a lot of times, but this don't seem to work, I also try to unistall xcode & re-install it, & the bug was fix.
I hope this won't happend to you that was horrible.
Thanks for your answer guys !
Related
Yesterday I was studying iOS development. I had just updated my Xcode and was finally able to deploy my apps to my iPhone. However, all of a sudden, my iPhone got a weird bug where it wasn't working at all. I restarted it, only to find that the developer section in settings was gone. I thought it might be some bugs from the beta version I was using, and decided to finally do the update (I had my memory all used up, so I didn't do it sooner in order to not delete anything). I thought that would fix my issue, and at least give my iPhone developer rights again. But it didn't. I've been searching for ways to do it since last night and I am unable to find anything recent, as they are all for older versions of iOS or Xcode. I tried them, but either they just don't work, or the path they use is now not existent.
Any ideas what that could be and how I could fix it?
I'm experiencing a similar issue as was posted previously in:
WatchKit Simulator Won't Load App
My WatchApp seems to be loading okay (I'm watching step by step w/ NSLog), but the spinner (sometimes) never stops and the Watch interface (sometimes) never appears in the Simulator, i.e.:
I've tried some of the workarounds posted at the above URL (and I apologize for not being able to directly add my comments there) and they seem to work some of the time.
But I'm looking for confirmation that this is a bug in the XCode 6.4 Simulator code or perhaps an incompatibility with my older hardware? (I'm running latest version Yosemite & XCode but on an older mid 2009 Macbook Pro).
It just seems un-Apple like for a development environment to be this buggy. I keep thinking it's gotta be my code and not Apple's XCode Simulator?
Anyone else still encountering these kind of "spinner and not displaying Watch screen" in the Simulator?
Thank you for any input, the previously suggested workarounds seem to help some of the time but having to go thru that many steps with each compile & run cycle is making rapid iterative Watch development in the Simulator extremely frustrating.
I have encountered quite a strange bug a few days ago. It turns out that any changes in Interface Builder don't affect actual design anymore when the app is being tested on the device.
Practically it means, that you can go as far, as completely remove all view controllers in Storyboard, but with no effect on the device — the application will look the same. No changes at all.
At the same time, IB still works normally if you run the app in the simulator. New projects also work fine, as well as my other existing apps. So the problem seems specific for this particular project and not easily reproducible.
If anyone has faced with a similar bug or knows its probable reason, please let me know. Any advice will be of great help. Thank you!
p.s. I have installed XCode 5.1 and upgraded my device (iPad 2) to iOS 7.1 just a day or two days before the problem initially occurred. An upgrade might cause the bug, but I haven't seen similar complaints on the web yet.
p.p.s Unfortunately, I had no chance to test this bug on iOS 6.x or <7.1 devices, but I will do it as soon, as I'll get access to one of these devices.
This is a bug in XCode.
Any changes that wont reflect at runtime, not even doing a Clean Build or even removing the app from the simulator or device.
Fix: rename storyboard to the old name (MainStoryBoard) and suddenly all changes were reflected.
see here
So, I've been updating this app that has a BaseSDK of 6.1.
So far it has been fine, until this afternoon. I ran it once on my iPhone 5 and it was fine (but crashed). It was running with the iOS6 look and feel like I wanted.
Fixed the bug (just a simple index out of bounds bug) and ran it again and now it runs with the iOS7 look and feel.
I've checked the deployment target and the Base SDK and I have no idea why it's doing this.
Can anyone point me in the right direction?
SOLVED
OK, so I managed to fix it.
I had to...
Quit Xcode.
Delete Derived Data.
Delete the app from my phone.
Restart my Mac and Xcode.
Rerun "pod update" for my cocoapods. (I tried this before with no luck).
Then start it all up again.
Now it's fine.
I haven't changed any code and all the Base SDKs and deployment targets are the same.
Oh well...???
Xcode 5 does not support SDK 6.1.
You can trick it to use it, but the behaviour is undefined.
If you have multiple SDKs installed, then Xcode 5 has a bug (or undefined behaviour, whatever) where it shows the connected devices twice (or N times for N SDKs installed) in the drop down where you select simulator/device.
Each of these icons will access the connected device using one of the SDKs you have installed, so even though they look the same, they'll have some odd side effects.
I always use the top one.. (better ideas welcome)
I was developing an app in Xcode and everything was working just fine. I went to shut off my network on my Mac to try and simulate 'No Network' so I could test a setting I had just set using the Phonegap.js.
I suddenly got a SIGABRT notice and can no longer run the app on my iOS simulator. It builds just fine. This has happened to me before under different circumstances.
I have found that all I have to do is paste the same code into a new project and all is well. So it appears to not be a code issue.
I've researched it and found that many people around the web are reporting it but I could not find where anyone successfully fixed it.
That is why I was hoping that someone on StackOverflow might have seen this before and know how to fix it.
I did come across a suggestion to remove a line our of your plist info file but that was for an iPad target and I am targetting the iPhone (but I still tried it and it didn't work either way).
XCODE 4.2, PhoneGap 1.3.0, iPhone 5.0
I am about 99% convinced that it has to do with a bug in XCode and ARC.