Bug Issue: Can't compile to Mac and iOS. Missing SDKs


Pages: 1 2

DJEmergency

  • Level 2 Stencyler
August 31, 2016, 10:52:02 pm
Can't compile no matter how much I try I will also include screen captures of the file paths. (Also it seems that Apple doesn't supply the iphoneos4.2 in the newest version of xCode.)

iOS Error:
Code: [Select]
Level:     INFO
When:      2016-09-01 01:43:02:556
From:      stencyl.sw.util.StreamGobbler

[haxelib] Error: xcodebuild: error: SDK "iphoneos4.2" cannot be located.

Mac Error:
Code: [Select]
Level:     INFO
When:      2016-09-01 01:47:17:862
From:      stencyl.sw.util.StreamGobbler

[haxelib] clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'


New attachment added by DJEmergency - August 31, 2016, 10:53:52 pm


New attachment added by DJEmergency - August 31, 2016, 10:54:03 pm


oripessach

  • Subscriber - Stencyl Studio
  • *
August 31, 2016, 10:54:24 pm
You'll have to set the IPHONE_VER environment variable to 9.3 to get iOS builds to work. Something like

export IPHONE_VER=9.3

In your ~/.profile should do it.

Mac builds have been broken for me for quite some time now. I pretty much gave up on building for the Mac.
« Last Edit: August 31, 2016, 10:57:00 pm by oripessach »


DJEmergency

  • Level 2 Stencyler
August 31, 2016, 10:55:02 pm
BTW I'm on the latest beta.


DJEmergency

  • Level 2 Stencyler
August 31, 2016, 10:58:21 pm
You'll have to set the IPHONE_VER environment variable to 9.3 to get iOS builds to work. Something like

export IPHONE_VER=9.3

In your ~/.profile should do it.

Mac builds have been broken for me for quite some time now. I pretty much gave up on building for the Mac.

Where is this file located? I can't really understand what you're saying here. Thanks in advance.

(Yea Mac compiling used to work like a few months back, but it's broken now...)
« Last Edit: August 31, 2016, 10:59:57 pm by DJEmergency »


oripessach

  • Subscriber - Stencyl Studio
  • *
August 31, 2016, 11:04:29 pm
It's in your home directory.

That's what '~' means, by the way - it gets expanded by the shell to the location of your home directory. Just a Unix convention that got carried over to Mac OS X. Or MacOS. Whatever it's called now.


oripessach

  • Subscriber - Stencyl Studio
  • *
August 31, 2016, 11:13:51 pm
Oh, wow - I never tried opening .profile (or any other hidden file) from non-command-line tools. TextEdit won't edit it, for example.

But you can use the vim command line editor. It's a pain to use if you're not used to how it works.

Run it from your command line:

$ vi ~/.profile

Move the cursor to the end of the file, press 'a' (make sure it's lowercase) to get into edit mode, type 'export IPHONE_VER=9.3' and press enter, then press esc, ':' and 'wq'. Then enter again.

Or find a more sane editor... vi is a bit weird.


DJEmergency

  • Level 2 Stencyler
August 31, 2016, 11:17:22 pm
It's in your home directory.

That's what '~' means, by the way - it gets expanded by the shell to the location of your home directory. Just a Unix convention that got carried over to Mac OS X. Or MacOS. Whatever it's called now.

I understand what "~" means, but the file you refer to is not here. https://www.dropbox.com/s/cf4f7tcpji7ahgr/Screen%20Shot%202016-09-01%20at%202.13.13%20AM.png?dl=0


oripessach

  • Subscriber - Stencyl Studio
  • *
August 31, 2016, 11:20:13 pm
I guess Apple doesn't want you to mess with hidden files, so Finder won't show you any files whose names start with a '.'

It's a pain, but you can edit that file (or create it) from the command line. See my other comment.

Really, Stencyl should set the environment if lime doesn't do it properly...


DJEmergency

  • Level 2 Stencyler
August 31, 2016, 11:46:35 pm
I guess Apple doesn't want you to mess with hidden files, so Finder won't show you any files whose names start with a '.'

It's a pain, but you can edit that file (or create it) from the command line. See my other comment.

Really, Stencyl should set the environment if lime doesn't do it properly...

Thank you for your help.

I followed your directions and created the file. Everything is there, but still I get the same error. I should be on haxe 3.2.0?


oripessach

  • Subscriber - Stencyl Studio
  • *
September 01, 2016, 11:57:38 am
Did you restart Stencyl?


DJEmergency

  • Level 2 Stencyler
September 03, 2016, 05:59:33 am
Did you restart Stencyl?

Yes. I made sure I closed out stencyl while doing it.


oripessach

  • Subscriber - Stencyl Studio
  • *
September 07, 2016, 01:48:52 pm
Weird.

Can you try setting IPHONE_VER from the command line and then running Stencyl from the same command line window?


DJEmergency

  • Level 2 Stencyler
September 08, 2016, 12:28:09 pm
Weird.

Can you try setting IPHONE_VER from the command line and then running Stencyl from the same command line window?

No luck so far...


oripessach

  • Subscriber - Stencyl Studio
  • *
September 09, 2016, 10:07:31 am
What's showing up in the logs?


DJEmergency

  • Level 2 Stencyler
September 09, 2016, 06:37:43 pm
Well for mac I get

Level:     INFO
When:      2016-09-09 21:36:46:088
From:      stencyl.sw.util.StreamGobbler

[haxelib] clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'


and for iOS another SDK is missing.


oripessach

  • Subscriber - Stencyl Studio
  • *
September 10, 2016, 10:16:35 am
And would you care to show me the log from the failed iOS compilation? This is the one case I was able to work around. I still can't compile for the Mac.


DJEmergency

  • Level 2 Stencyler
September 10, 2016, 03:21:22 pm
And would you care to show me the log from the failed iOS compilation? This is the one case I was able to work around. I still can't compile for the Mac.

It's the same build error on the first post.


Justin

  • Master Stencyler
  • *
September 11, 2016, 03:14:18 pm
Once I'm done fixing some Design Mode bugs (this one and this one) I'll try looking at any pressing Mac-related things, including this.


Issue updated by Justin - September 13, 2016, 05:30:17 am
  • Issue Assigned from (none) to Justin


Pages: 1 2

Details

  • Reported
    August 31, 2016, 10:52:02 pm
  • Updated
    September 20, 2016, 09:18:53 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    Stencyl 3.4, 3.4.0 beta4
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Compiling/Testing Games

Tags


Attachments


* Mac SDK Dir.png (111.6 kB, 1634x440 - viewed 433 times.)

* iPhone SDK Dir.png (103.35 kB, 1638x402 - viewed 462 times.)