iOS 8 & OS X Yosemite Beta Discussion

I can confirm that Corona Simulator does not work with OS X Yosemite. This is very frustrating. I know that corona will have to update their simulator sometime, but right now I can’t really do anything. Does anyone know how to revert back to Mavericks? 

Can You Give Us A Timeline for Yosemite Support?

Since Corona Pro compiles server-side it’ll compile with Xcode 5.1.1 from their servers regardless of which Xcode we have installed locally.

I’m quite sure that not being able to run Xcode 6 compiled apps on older iOS versions will be fixed in a later beta once they get around to supporting them. I’ve reported it to them anyway…

@chasemorell
Oh my. You made a backup before you overwrote your installation, right?
If you use TimeMachine you should be able to restore from there.

BTW. It’s unlikely for CoronaLabs to provide a timeline for support since it’s still a *very* early beta. We don’t even know when Apple will release it yet.

@Chase: the only way I know of downgrading your OS is to essentially wipe the drive and do a fresh install of Mavericks, then restore from a Time Machine backup. It’s time consuming and tedious, but at least on OS X we have the option. Downgrading iOS isn’t even possible…

EDIT: based on ignemar’s post, it could be that a Time Machine restore will also restore the OS, saving you the trouble of wiping and re-installing Mavericks, but I can’t say for sure. Regardless, you’re gonna need a Time Machine backup.

Regarding the Simulator not working in Yosemite, I thought I’d add this bit of info for Corona Labs: you can open up the application, and even perform device builds (tested and confirmed), but the parts that I’d imagine are dependent on Java don’t seem to be working. Namely, the welcome window opens up (sometimes) but is blank - and the simulator window opens up, with the device “frame” visible, but just a gray screen. I’m guessing that these are Java-dependent, because on first launch I was prompted to download and install the Java 6 runtime, which doesn’t come pre-installed with the OS (similar to other recent OS X updates).

So actually testing apps in the Corona Simulator, for now, doesn’t work. But you can at least create device builds. However, I have noticed that the application is way more crash-prone in the current Yosemite developer preview. Oftentimes after finishing the device build, the app will crash - and sometimes before I can even make a build.

Ah, the joys of early adoption! :slight_smile:

Weird, I can’t do device builds in mine :frowning:

Take note though that if you have excluded some important folder in your Time Machine, you won’t be able to do a full restore… as with my set up.

@bfintal: I see that you appear to be a starter user - are you using the last public build? I’m using the latest daily, which might account for our different experiences (i.e. making a device build). Does the simulator open up at all for you? Can you attempt to open up a project, or does it just crash right away?

@schroederapps, yeah didn’t reach the grandfather time limit to renew lol!

When I open it, it doesn’t show anything, no welcome screen. When you open a project, it partially shows a zoomed in simulator then crashes.

I made the mistake of updating my primary iPhone to iOS 8… Now when testing my published corona apps all of them flash black screens about three times a second. Does anyone know how to a) make my apps compatible or b) revert my iPhone back? 

I tried erasing everything off of my phone, but that did not work.

@schroederapps Do you know when it might be released? 

And how can I create device builds? When I open the app main.lua file it automatically opens the simulator and crashes. 

Hi KarioKong1,

I’ve also seen this “flashing” behavior on-device in one of my currently-in-production apps, but it only seems to happen on launch, and only for a few seconds. My previously-published apps are not showing this behavior on my iOS 8 iPhone (iPhone 5S/Verizon, in case that helps - Apple uses different firmwares for each phone model & carrier). Especially if you are seeing this for published apps, you should definitely file a bug report with Apple. It’s definitely a regression bug that will likely get squashed in a future beta release…that’s what the beta period is for, after all! But it won’t get squashed if people don’t report it, so be sure to file a bug. At least now we’ve got the Bug Reporter app so we can send a report from the device.

As for downgrading, I think you are probably out of luck. But you could always try downloading an iOS 7 update file from http://www.jailbreakeye.com/download-ipad-ios-firmwares, which has links to official Apple firmware DMGs. Then try to restore from that file in iTunes…but again, I don’t anticipate that this will work. Apple’s official stance is that once you’re in the beta, you’re committed.

As for creating device builds, I am beginning to think I’m just plain lucky, because others have reported that they aren’t able to. I managed to make it work by opening up a project (command-O) and once it opens, even though the simulator window is blank, hit command-B and tell it to create a build. Like I said, it’s still crash-prone, but I managed to get one of projects to build, and it did work on-device. Your mileage may vary.

I can’t say when Corona Labs will get around to making a build that works in Yosemite, but don’t hold your breath. It’s a barely-in-beta OS, and CL can’t devote too much time to checking compatibility with a not-yet-released operating system. My guess is that we’re probably a month or two away from them really devoting much energy towards Yosemite compatibility. And any fixes on the CL side of things will almost certainly be available exclusively in daily builds, at least for a while (it looks like you are a starter edition user?). Hopefully whatever screwed up the compatibility will get fixed in a future beta revision.

We wont be supporting Yosemite for production use until it is officially released (but you knew that).

However, having said that, I can confirm that the Mac Simulator mostly doesn’t work on Yosemite (a couple of other third party apps I tried didn’t either).  The fact that one can do device builds actually implies that the Java part *is* working.  

I’ll look into the issues but, if history is any guide, the WWDC betas of MacOSX are pretty flaky (the first beta of Mavericks was almost unusable) but new ones come out fairly quickly so it’s not worth spending much effort chasing issues at this stage. 

While I’m here, a couple of tips on playing with OS betas …

On the Mac, only ever install betas on an external hard disk ($30 and up at Amazon), on an SD card (ditto), or for the adventurous, on a separate partition of your main disk (I’ve even done it on a TimeMachine backup disk while it was still in use as a TM backup but I wouldn’t recommend that).

On iOS, despite what Apple says, downgrading isn’t very hard (I’ve done it) you just need to get the device into “recovery mode” though you will lose all the data that is only on the device (your mileage may vary, I’m not recommending you install beta OSes on any device you can’t afford to brick).  There’s a good guide here.

Hello Everyone,

We tested some of our apps on an iPhone and on an iPad with iOS8 and we are also seeing the black flickering screen in some of them, is there any info if this is an Apple or Corona bug ?

We have just opened a ticket with Corona also.

I run 10.9.3 and would like to install xCode 6 only. Now I have read it can co-exist with xCode 5 on my machine and they both work but I still want to be able to use Corona and build apps the store using xCode 5.

Will this be ok and has anyone tried it ?

Dave

It “should”.  Usually Xcode previews are separate apps and your existing Xcode stays in place.  However having not tried it, I won’t give this a 100% thumbs up.

Rob

I can confirm that Xcode 5 and Xcode 6 beta can exist side-by-side in Mavericks. If you were compiling a native app for release then it’d be very easy to compile using Xcode 5. But since Corona handles the build process for us, there is definitely room for confusion to creep in. At the very least, when it comes time to build for distro, you could uninstall Xcode 6 to ensure you build against Xcode 5. I’d venture a guess that there’s not much potential for real harm by installing Xcode 6 on Mavericks - it might make extra work for you, but it shouldn’t “break” anything. Worst-case scenario, you may have to uninstall all Xcode versions and reinstall 5, but that’s unlikely.

@Perry: thanks for chiming in! Curious about your experience downgrading from iOS betas: did you try it during the iOS 7 beta? I only ask because I’m familiar with DFUing phones to restore in difficult cases, and I successfully went from iOS6 beta to iOS5 with that method back in 2012, but when I tried to downgrade from iOS7 beta to iOS6 in 2013, unless my memory fails me, it didn’t work, even in DFU mode. Apple seems to have really cracked down on what iOS versions it will digitally sign these days…did you know that you can’t upgrade or downgrade any iOS devices to anything earlier than 7.1 anymore? Not without some fancy hacky workarounds, at least. Only today I had a coworker ask me to upgrade an old disused iPad 2 from iOS 4 to iOS6 (he wanted a newer version but hates the “flat design” look), and even though I had the firmware file, the upgrade failed because it couldn’t be digitally signed. Mind you, this was a simple, non-jailbreak upgrade, but Apple still wouldn’t allow it. That’s why I suspect they may make it very tough to downgrade.

If you want or need to know precisely what version of iOS or Xcode your app is built for you can find it in the app’s Info.plist.

Run a command like:

defaults read ~/Desktop/MyApp.app/Info.plist

(note that you have to give the full path to the app, a relative path wont do).

Look for entries like  DTSDKName and  DTXcodeBuild to confirm you’re building for what you intended to.

That’s exactly what I did.  I tried the first beta and after it dropped a couple of calls on me I decided I needed to go back to iOS 6 (and thoroughly kicked myself for putting a beta on a device I needed to get work done).

The thing I think that trips up most people is that they decide they want to go back to what they had before rather than what is currently allowed which, as you mention, isn’t possible unless they were fully up to date.  People also get themselves into trouble by accidentally (or deliberately) backing up the device with the beta on it and, since they have to erase all their data to downgrade, can’t get back to where they were (because backups generally wont restore to an earlier OS version).  My approach is to accept all the defaults iTunes offers when trying to restore in “recovery mode” and it’s always worked for me (tempting fate there, I know) both for downgrades and cases where the OS decides the device is “full” despite there only being enough data on it to fill 50% of available space.

Really, the best advice is to not put yourself in the position of needing to downgrade by installing the beta on a device that you can do without until whatever issue you run up against is fixed in a beta refresh.  And if you don’t have such a device, just read about the beta online and smile when you hear reports of beta testing horrors :slight_smile: