iOS 7 Beta Build

Can you post some code?  or better yet, put together a small sample that demonstrates the problem and file a bug report.  Have you tried it with the native.newTextField sample app?

I filed a bug report.  I just use the sample app you referenced and when I added code to print the value of the text field.   When I run it on a device and view the device console, I can see that it is 1 step behind.  

I built the sample in “SampleCode/Interface” called “NativeKeyboard” with build 1210, iOS 6.1 target, using XCode 5 GM installing to my iPhone 5 running iOS 7 GM and it works as expected.  I also installed one of my apps that uses keyboard input and it’s also working fine.

Hopefully engineering can find this bug for you.

The iO7 native.textField editing issue has been fixed and available in Daily Build 1209.

I am still having problems with the latest build.  Here is sample code you can use.  Please verify that this works for you.    This does not work for me on iPhone 5 with iOS 7.   For me, when I run this code on a device, the text on screen is always one character behind the text shown in the input box.    I have a label which is showing the contents of the text field and you should see on simulator that the label matches the text field, but on an iOS7 device, the label does not match the text field.

local defaultField, defaultLabel local function fieldHandler( textField ) return function( event ) if ( "began" == event.phase ) then -- This is the "keyboard has appeared" event -- In some cases you may want to adjust the interface when the keyboard appears. elseif ( "ended" == event.phase ) then -- This event is called when the user stops editing a field: for example, when they touch a different field elseif ( "editing" == event.phase ) then defaultLabel.text = textField().text elseif ( "submitted" == event.phase ) then -- This event occurs when the user presses the "return" key (if available) on the onscreen keyboard print( textField().text ) -- Hide keyboard native.setKeyboardFocus( nil ) end end end defaultField = native.newTextField( 10, 30, 180, 40 ) defaultField.font = native.newFont( native.systemFontBold, 15 ) defaultField:addEventListener( "userInput", fieldHandler( function() return defaultField end ) ) ------------------------------------------- -- \*\*\* Add field labels \*\*\* ------------------------------------------- defaultLabel = display.newText( "Copy of text in text field", 50, 105, native.systemFont, 18 ) defaultLabel:setTextColor( 170, 170, 255, 255 )

textField().text has the right information in it when it’s submitted.  But I can see where this is an annoyance in particular for people who don’t use the native textfield on screen but are writing to their own display.newText().

Please file a bug report on it with this code.  You might want to include a use case as to why you can’t just grab the value in the submitted phase.

Rob

I reported this 16th august, case 25641.

  1. local function textListener( event )
  2.     
  3.     if event.phase == “editing” then
  4.         print("event.newCharacters ", event.newCharacters, “event.text”, event.text)
  5.     end
  6.     
  7. end
  8.  
  9. local defaultField = native.newTextField( 10, 30, 180, 30 )
  10. defaultField:addEventListener( “userInput”, textListener )
  11.  
  12. – Output Simulator + Android + iOS 6 when typing in ‘abc’
  13. – event.newCharacters     a    event.text    a
  14. – event.newCharacters     b    event.text    ab
  15. – event.newCharacters     c    event.text    abc
  16.  
  17. – Output iOS 7 Beta 3-5 when typing in ‘abc’
  18. – event.newCharacters     a    event.text
  19. – event.newCharacters     b    event.text    a
  20. – event.newCharacters     c    event.text    ab

I’m working with engineering on it.

Rob

I’m using Corona SDK Version 2013.1202 (2013.8.28), and trying to build my project using the iOS SDK 7.0 (Beta) option in “Build for iOS”. I’m getting this message back:

A device build error occurred on the server. 

BuildID: 522b7fcf8f01e 

Error: Template not found.

Build Number: 2013.1202

Platform: iphone-sim

Platform Version: 7.0

Template Type: basic

I have the XCode Version 5.0 (5A11386k) - the last one on Apple Developer site till now. (iOS 7 beta 6).

Do you know what it means?

Thanks.

@ alexandrefalmeida idk what that specific error means, but when i try to build using an iOS 7 beta, it shoots back you can’t build against a beta. Once the gm is released I will build against it, but for now, its iOS 6.1. 

Edit: I was talking specifically about a distr. build… developer build, not an issue. 

Do you have XCode 5 Developer Preview 6 installed?

Have you changed your path to use that version instead of Xcode 4?

You can execute: xcode-select --print-path

from the command line and find out if you’re pointing to the right Xcode.  Then assuming your XCode DP6 is in Applications you can do:

sudo xcode-select -switch /Applications/Xcode5-DP6.app/Contents/Developer

I’ve just checked it. 

sudo xcode-select --print-path

/Applications/XCode5-DP6.app/Contents/Developer

Same error. When I try the 6.1 option, it works fine.

Thanks.

Are you building a development or AdHoc profile for testing on the device or are you building for Distribution to iTunes Connect?

You cannot submit to iTunes Connect using the Beta SDK and Xcode 5 probably won’t let you submit either.

Exactly what I was trying to word but couldn’t find the words above. Well said as usually Rob! 

I’m using my iPhone Developer iOS Team Provisioning Profile.

Checked it again.

I googled this error and found nothing.

It says it’s a server error, template not found. Can you give me any other clue?

Even when I try to build it to Xcode Simulator, the error is the same:

A device build error occurred on the server. 

 

BuildID: 522b8be99cc2d 

Error: Template not found.

 

Build Number: 2013.1202

Platform: iphone-sim

Platform Version: 7.0

Template Type: basic

 

Thanks.

Alex, try rolling back to build 2013.1192 and see if you get the same issue? 

jmarchalonis, you’ve got it.

It worked with version 1192.

Thanks, I hope Corona Team will fix it soon.

Best regards.

Glad that worked for you alex… 

alexandrefalmeida, I had the same “template not found” issue a couple of days ago.  As I had been messing about trying to switch between different versions of Xcode, and couldn’t find any mention of it on the forums, I thought that I had messed up something on the machine so I spent several hours restoring the machine to a previous state, and reinstalling software.

Anyhow, 1202 doesn’t work when building to ios7 beta.  1198 works fine.