Skip to main content
fjl74588430
Participating Frequently
April 2, 2016
Question

stage size with -platformsdk

  • April 2, 2016
  • 1 reply
  • 310 views

I create a empty mobile project and just add an enter frame event to trace stage size,

then debug at iphone 6 plus,(physical device)

without -platformsdk,air gives stage size 1242x2208,that is correct.

when i give the -platformsdk value,air gives stage size 828x1472,

and both stage size returns different dpi.

I use air 20 and iOS sdk 9.3

is it  a bug of air? and any one who knows how to get the  1242x2208 with -platformsdk ?

This topic has been closed for replies.

1 reply

fjl74588430
Participating Frequently
April 4, 2016

i have solved the problem

use sdk path like this

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk

and not like this

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk

i hope it could help others have the same problem