Object Rotation Issue on iOS 9.3.2

I can certainly try. But remember there is a whole community here to help.

Rob

Ok, thank you. I’ll send you a message when It’s ready to test

I don’t have a chance to build the project and test it out right now but when you have a build ready for TestFlight, I can test it out on an iPhone 5 with iOS 9.3.2. Send me a message if you want.

Rob I can’t send you a private message so when you read this you can send me an email I can use for TestFlight.

thank you

@bgmadclown: thanks! I will send you a message when It’s ready.

The app is currently waiting for Beta App Review for TestFlight, so we’ll see how It goes on device.

In the meantime I was thinking that the problem might be caused by how the Blades are attached to two Objects in the game.

Basically there are two tubes (as objects) closing down at user touch and attached to these tubes there are two rotating blades (as just images), so that when the tubes are moving also the blades are moving with them (while always rotating).

I did this by just stating the X and Y positions of the blades as follow:

blade2.x = pipeBottomPiece.x; blade2.y = pipeBottomPiece.contentBounds.yMin; blade1.x = pipeTopPiece.x; blade1.y = pipeTopPiece.contentBounds.yMax;

Could this cause a problem of lagging or freezing during the game? Is this the proper way to attach a rotating image to a moving object?

Thanks

Are you using physics?

Just for the pipes, not for the Blades as I don’t need collision for them.

You might want to consider joints. I think a weld joint would work for this.  See:

https://docs.coronalabs.com/guide/physics/physicsJoints/index.html

Rob

I tried to implement the Weld Joint in my app and It works great, though I do still have some problem with rotation.

I added physics on my blades:

local blade2 = display.newImageRect(group, "IMG/blade.png", 70, 70); physics.addBody(blade2, "dynamic"); blade2.gravityScale = 0; blade2.x = pipeBottomPiece.x; blade2.y = pipeBottomPiece.contentBounds.yMin;

and I joint them successfully with the pipes:

local weldJoint2 = physics.newJoint( "weld", pipeBottomPiece, blade2, pipeBottomPiece.x, pipeBottomPiece.contentBounds.yMin )

Now for the continuous rotation I couldn’t keep rotation.object as It doesn’t seem to work for physical objects, so I tried transitions:

local onComplete2 = function( self ) self.rotation = 0 blade2Transition = transition.to( self, { rotation=360, time=500, onComplete = self }) end blade2.onComplete = onComplete2 blade2Transition = transition.to( blade2, { rotation=360, time=500, onComplete = blade2 })

This works really well in the Corona Simulator, but when I try it in the Xcode Simulator with iOS 9.3 It speeds up the rotation and It looks a bit buggy, but still works.

I was wondering what happens with rotation in iOS 9.3 and I found this forum post: https://forums.coronalabs.com/topic/2252-how-to-make-object-follow-another-object/

Could the game timer be the problem with my app in iOS 9?

thanks

I’m going to suggest you either A) start a new thread or B) change the title. You’re getting into game mechanics and there are people who know way more about the physics engine than I do and very few people are going to chime in based on the title of the thread.

Rob

Tested app on different devices running iOS 9.3.2 and the problem seemed to be gone. Only on the Xcode Simulator there is a bit of lagging.

I send it to Apple and It passed the review.

App is now published, so if you want to take a look or give a feedback and support here is the link: https://geo.itunes.apple.com/us/app/trumpig/id1111289350?mt=8

Thanks for the help

Diego

The Xcode Simulator is running one operating system on top of another. There will always be some performance hit using it.

They should give you more information.

Rob

Hi,

I send a request for technical support to Apple and in the meantime I’m trying to solve the issue.

I tried the app on the Xcode simulator and I have the same issue reported by Apple. The app just freezes after showing an ad and asking for the Gamcenter login.

I have several errors from the console log.

This is the console log from Xcode simulator:

Jun 1 16:14:35 Diegos-MBP backboardd[3585]: SecTaskLoadEntitlements failed error=22 cs\_flags=200, task-\>pid\_self=-1 Jun 1 16:14:35 Diegos-MBP backboardd[3585]: SecTaskLoadEntitlements failed error=22 cs\_flags=200, task-\>pid\_self=-1 Jun 1 16:14:35 Diegos-MBP backboardd[3585]: SecTaskLoadEntitlements failed error=22 cs\_flags=200, task-\>pid\_self=-1 Jun 1 16:14:35 Diegos-MBP backboardd[3585]: SecTaskLoadEntitlements failed error=22 cs\_flags=200, task-\>pid\_self=-1 Jun 1 16:14:35 Diegos-MBP backboardd[3585]: SecTaskLoadEntitlements failed error=22 cs\_flags=200, task-\>pid\_self=-1 Jun 1 16:14:36 Diegos-MBP gamecontrollerd[6148]: Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find: Jun 1 16:14:36 Diegos-MBP gamecontrollerd[6148]: Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find: Jun 1 16:14:36 Diegos-MBP gamecontrollerd[6148]: Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find: Jun 1 16:14:36 Diegos-MBP gamecontrollerd[6148]: Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find: Jun 1 16:14:36 Diegos-MBP gamecontrollerd[6148]: Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find: Jun 1 16:14:36 Diegos-MBP gamecontrollerd[6148]: Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find: Jun 1 16:14:36 Diegos-MBP searchd[6115]: tcp\_connection\_tls\_session\_error\_callback\_imp 3 \_\_tcp\_connection\_tls\_session\_callback\_write\_block\_invoke.434 error 32 Jun 1 16:14:36 Diegos-MBP AppNameTest5[6133]: (Error) MC: MobileContainerManager gave us a path we weren't expecting; file a radar against them Jun 1 16:14:37 Diegos-MBP AppNameTest5[6133]: SecTaskLoadEntitlements failed error=22 cs\_flags=200, task-\>pid\_self=6133 Jun 1 16:14:37 Diegos-MBP searchd[6115]: tcp\_connection\_tls\_session\_error\_callback\_imp 8 \_\_tcp\_connection\_tls\_session\_callback\_write\_block\_invoke.434 error 22 Jun 1 16:14:37 Diegos-MBP searchd[6115]: tcp\_connection\_tls\_session\_error\_callback\_imp 4 \_\_tcp\_connection\_tls\_session\_callback\_write\_block\_invoke.434 error 22 Jun 1 16:14:37 Diegos-MBP searchd[6115]: tcp\_connection\_tls\_session\_error\_callback\_imp 6 \_\_tcp\_connection\_tls\_session\_callback\_write\_block\_invoke.434 error 22 Jun 1 16:14:38 Diegos-MBP AppNameTest5[6133]: SecTaskLoadEntitlements failed error=22 cs\_flags=200, task-\>pid\_self=6133 Jun 1 16:14:38 Diegos-MBP AppNameTest5[6133]: SecTaskLoadEntitlements failed error=22 cs\_flags=200, task-\>pid\_self=-1 Jun 1 16:14:41 Diegos-MBP gamed[6149]: (Error) MC: MobileContainerManager gave us a path we weren't expecting; file a radar against them Jun 1 16:14:43 Diegos-MBP AppNameTest5[6133]: Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find: Jun 1 16:14:43 Diegos-MBP AppNameTest5[6133]: Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find: Jun 1 16:14:43 Diegos-MBP AppNameTest5[6133]: Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find: Jun 1 16:14:43 Diegos-MBP AppNameTest5[6133]: Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find: Jun 1 16:14:43 Diegos-MBP AppNameTest5[6133]: Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find: Jun 1 16:14:43 Diegos-MBP AppNameTest5[6133]: Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find: Jun 1 16:14:43 Diegos-MBP accountsd[3624]: SecTaskLoadEntitlements failed error=22 cs\_flags=200, task-\>pid\_self=-1 Jun 1 16:14:43 Diegos-MBP pkd[6114]: SecTaskLoadEntitlements failed error=22 cs\_flags=200, task-\>pid\_self=-1 Jun 1 16:14:44 Diegos-MBP backboardd[3585]: Unable to bootstrap\_look\_up port with name com.apple.GameCenterUI.GameCenterAuthenticateExtension.gsEvents: unknown error code (1102) Jun 1 16:14:44 Diegos-MBP AppNameTest5[6133]: -canOpenURL: failed for URL: "itms-books://" - error: "This app is not allowed to query for scheme itms-books" Jun 1 16:14:44 Diegos-MBP AppNameTest5[6133]: -canOpenURL: failed for URL: "kindle://home" - error: "This app is not allowed to query for scheme kindle" Jun 1 16:14:47 Diegos-MBP searchd[6115]: tcp\_connection\_tls\_session\_error\_callback\_imp 7 \_\_tcp\_connection\_tls\_session\_callback\_write\_block\_invoke.434 error 32 Jun 1 16:15:00 Diegos-MBP GameCenterAuthenticateExtension[6152]: (Error) MC: MobileContainerManager gave us a path we weren't expecting; file a radar against them Jun 1 16:17:21 Diegos-MBP routined[3573]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 Jun 1 16:23:21 Diegos-MBP routined[3573]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 Jun 1 16:29:21 Diegos-MBP routined[3573]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 Jun 1 16:35:21 Diegos-MBP routined[3573]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 Jun 1 16:41:21 Diegos-MBP routined[3573]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 Jun 1 16:47:21 Diegos-MBP routined[3573]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 Jun 1 16:53:21 Diegos-MBP routined[3573]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 

Thanks

Can you post the whole log starting with the first messages from Corona where it says what build #, OpenGL verison etc.

Hi Rob,

Do you mean the log from Corona simulator?

I don’t have any error in the Corona simulator so I just posted the log from Xcode simulator.

The app is working perfectly on older versions of iOS and on the Corona simulator. The issue seems to show only on iOS9

This is my log in Corona:

Jun 01 07:04:58.236 Copyright (C) 2009-2016 C o r o n a L a b s I n c . Jun 01 07:04:58.237 Version: 3.0.0 Jun 01 07:04:58.237 Build: 2016.2886 Jun 01 07:06:35.594 Copyright (C) 2009-2016 C o r o n a L a b s I n c . Jun 01 07:06:35.594 Version: 3.0.0 Jun 01 07:06:35.594 Build: 2016.2886 Jun 01 07:06:35.605 Loading project from: ~/Documents/SDK Corona/AppNameTest/code Jun 01 07:06:35.605 Project sandbox folder: ~/Library/Application Support/Corona Simulator/code-30DAC77E21A5310704AF2293D1D6C3FC Jun 01 07:06:35.617 Platform: iPad / x86\_64 / 10.11.2 / Intel HD Graphics 4000 OpenGL Engine / 2.1 INTEL-10.12.13 / 2016.2886 / en | US | en\_US | en Jun 01 07:06:37.692 WARNING: CoronaProvider.ads.admob is not configured in build.settings Jun 01 07:06:37.700 WARNING: The 'ads' provider (admob) is not available on the simulator Jun 01 07:06:37.714 WARNING: CoronaProvider.ads.admob is not configured in build.settings Jun 01 07:06:37.714 WARNING: The 'ads' provider (admob) is not available on the simulator Jun 01 07:06:37.733 !WARNING! \> The chartboost plugin is only supported on an Android & iOS devices. Please build for device Jun 01 07:06:37.733 !WARNING! \> The chartboost plugin is only supported on an Android & iOS devices. Please build for device Jun 01 07:06:37.733 !WARNING! \> The chartboost plugin is only supported on an Android & iOS devices. Please build for device Jun 01 07:06:37.733 WARNING: The 'plugin.applovin' library is not available on this platform. Jun 01 07:06:37.748 WARNING: The 'plugin.googleAnalytics' library is not available on this platform. Jun 01 07:06:37.758 WARNING: The Flurry plugin is only supported on Android & iOS devices. Please build for device Jun 01 07:06:38.109 WARNING: The 'plugin.applovin' library is not available on this platform. Jun 01 07:06:38.109 WARNING: The 'plugin.applovin' library is not available on this platform. Jun 01 07:06:38.274 WARNING: The 'gameNetwork' provider (google) is not available on the simulator

Thanks for your help

No, I meant from Xcode or Console like you did at the beginning. But there should be some prints from Corona in that log that shows when the app Started. I want to make sure I’m seeing everything in the log file. Nothing in your initial log really stands out.

Rob

I tried to run it again on the Xcode simulator and this time the app It’s working but very very slow, like if It was in super slow motion.

I have the complete log from Corona Console:

Jun 01 08:28:30.891 iOS build succeeded Jun 01 08:28:31.254 Running '/Users/diego/Documents/SDK Corona/AppNameTest6.app' on Xcode iOS Simulator - iPhone 6s Plus / iOS 9.3 (176F74D9-837E-4B60-870B-7ADDF2C79D30) Jun 01 08:29:44.213 ---------- Device Log Starts ---------- Jun 01 08:29:45.881 [iOS Simulator] -[FlurryWatchConnectivity init]: WatchConnectivity isn't linked, Flurry Analytics will be disabled for any paired watch Jun 01 08:29:46.235 [iOS Simulator] Platform: iPhone / x86\_64 / 9.3 / Apple Software Renderer / OpenGL ES 2.0 APPLE-12.0.41 / 2016.2886 / en-US | US | en\_US | en Jun 01 08:29:46.309 [iOS Simulator] luaopen\_CoronaProvider\_ads\_admob Jun 01 08:29:46.482 [iOS Simulator] [ALTaskInitializeSdk] Handling an SDK update migration... Jun 01 08:29:46.493 [iOS Simulator] Flurry: Starting session on Agent Version [Flurry\_iOS\_175\_7.5.2] Jun 01 08:29:46.541 [iOS Simulator] Normal message received by listener connection. Ignoring. Jun 01 08:29:46.542 [iOS Simulator] Could not successfully update network info during initialization. Jun 01 08:29:46.713 [iOS Simulator] SecTaskLoadEntitlements failed error=22 cs\_flags=200, task-\>pid\_self=2938 Jun 01 08:29:46.720 [iOS Simulator] SecTaskCopyDebugDescription: AppNameTest6[2938] Jun 01 08:29:46.957 [iOS Simulator] SecTaskLoadEntitlements failed error=22 cs\_flags=200, task-\>pid\_self=2938 Jun 01 08:29:46.957 [iOS Simulator] SecTaskCopyDebugDescription: AppNameTest6[2938] Jun 01 08:29:46.966 [iOS Simulator] SecTaskLoadEntitlements failed error=22 cs\_flags=200, task-\>pid\_self=-1 Jun 01 08:29:46.966 [iOS Simulator] SecTaskCopyDebugDescription: AppNameTest6[2938] Jun 01 08:29:49.874 [iOS Simulator] INFO: GoogleAnalytics 3.15 -[GAIReachabilityChecker reachabilityFlagsChanged:] (GAIReachabilityChecker.m:159): Reachability flags update: 0X000002 Jun 01 08:29:49.958 [iOS Simulator] nil Jun 01 08:29:50.049 [iOS Simulator] flurry Jun 01 08:29:51.564 [iOS Simulator] Normal message received by listener connection. Ignoring. Jun 01 08:29:51.564 [iOS Simulator] Could not successfully update network info during initialization. Jun 01 08:29:54.844 [iOS Simulator] interstitial Jun 01 08:30:38.801 [iOS Simulator] plugin com.apple.GameCenterUI.GameCenterAuthenticateExtension invalidated Jun 01 08:32:52.490 [iOS Simulator] Could not successfully update network info during initialization. Jun 01 08:32:52.491 [iOS Simulator] Normal message received by listener connection. Ignoring. Jun 01 08:32:52.504 [iOS Simulator] \<Google\> To get test ads on this device, call: request.testDevices = @[GAD\_SIMULATOR\_ID]; Jun 01 08:32:52.627 [iOS Simulator] Score was posted Jun 01 08:32:53.716 [iOS Simulator] -canOpenURL: failed for URL: "itms-books://" - error: "This app is not allowed to query for scheme itms-books" Jun 01 08:32:53.716 [iOS Simulator] -canOpenURL: failed for URL: "kindle://home" - error: "This app is not allowed to query for scheme kindle" Jun 01 08:32:55.113 [iOS Simulator] \<Google:HTML\> You are currently using version 6.12.2 of the SDK. Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes. The latest SDK can be downloaded from http://goo.gl/iGzfsP. A full list of release notes is available at https://developers.google.com/admob/ios/rel-notes.

I will try to run it again and see if I get any error when It’s freezing

Sounds like networking problems at the moment.

Rob

Just to update on the issue.

To Recap:

On Corona Simulator (latest build) for iOS 9.3 = APP WORKS PERFECTLY

On iOS 6.0.1 (iPhone 4S) = APP WORKS PERFECTLY

On iOS 8.3 (iPhone 5) = APP WORKS PERFECTLY

On Xcode Simulator (7.3.1) = APP IS VERY VERY SLOW (SOMETIMES EVEN FREEZES)

On iPhone/iPad running iOS 9.3.2 (from Apple Review) = APP FREEZES

What I tried:

  • Remove a blinking text in the menu screen
  • Build the app with a new Provisioning Profile
  • Build the app without any plugin
  • Check that I don’t have Slow Animation in Xcode Simulator

Still the app is running very very slow. There is something about iOS 9.3.2 (or iOS 9 in general) that is causing this.

Let me know if you have any idea on this or if you are experiencing problems with the new iOS update.

Thanks