Sprites is not loading in Ad-HOC mode in iOS - ios

I am completely stumped here. Created my game, all working in XCode' simulator and also on my device when directly deployed from XCode.
I Submitted my app and they rejected it and asked me to run in Ad-HOC mode in my device to test since the app was not working.
I can replicate the issue in Ad-HOC mode.
Issue: Once replace scene is invoked, the tile map is not populating
the Sprites from the sprite-sheet created using the TexturePacker
software. The app does not crash, however the Scene is empty with just
the background without any Sprites loaded in it.
Not sure how can this be a code issue since works fine when I install directly from XCode.
Please help, thanks in advance :)

#LearnCocos2D, Thanks, I found out the bug last night. I did not use CC_CONTENT_SCALE_FACTOR() when placing sprites using tilemap co-ordinates. Amazing thing is, it worked in debug mode but did not as soon as I released the binary :)

Related

Application launched to a pink screen and a blank screen after built on Xcode and tested on Testflight

I am creating a mobile game application using Unity software. I have already successfully uploaded it onto Google Playstore and there was totally no issues.
However, when I built my game on my MacBook using Xcode, there seems to be a major issue.
Everything was built successfully and after I tested the app on TestFlight, these are the issues that were occurring:
Upon launch, screen was in a magenta/pink color
Took few seconds to load then screen changed to a somewhat grey color
Background music was playing
I clicked certain buttons on the blank screen and it could bring me to the play mode (as I roughly know where the buttons are)
So the main issue is that nothing is showing on my screen but codes wise should be working fine.
I have tried resetting the graphics setting in unity and removed all storyboard related as I am not using any storyboards for launchscreen. I am using Xcode 11.1 and tested on my iPhone X on the latest iOS 13.2
When I first submitted for Apple to review, it was rejected by saying that upon launch there was a blank screen and no information on how to resolve it was given to me
This pink usually is caused by wrong shaders, especially if you are using asset bundle to load assets at runtime, you need to build different copies of asset bundles for different platforms and load the corresponding one.
It's recommended to build an empty project to test your environment, such like different version of Unity Editor, different rendering API settings and so on.
This is due to missing shaders in graphics settings of your project. reset shaders and your game will work fine, i found this effective in my case
Edit/ProjectSettings/Graphics. And Right Click at the top of the inspector page for built-in shaders and choose reset it should fix it for you automatically.

iOS simulator issue with SceneKit displays only black shapes

I have developed a small dice rolling app using SceneKit. While everything works correctly on device my dice nodes are shown as black shapes in the simulator. This used to work fine before but I stopped working on the app for a year and Xcode updated since. You can find screenshots of the issue below.
I tried using an other version of Xcode (11 beta). I tried deleting everything Xcode and Simulator related and reinstalling. I tried disabling every fancy effect on my dice nodes but nothing seems to have an impact, the issue really seems to come from the simulator rendering.
As anyone ever encountered a similar issue? Any help on how to fix it would be appreciated as I use Fastlane Snapshot to generate new screenshots when I release.
Simulator Screenshot:
Device Screenshot:
I made it work by trying random stuff: the culprit seems to be my SCNLight node that lights the scene. My light type was set to .spot but if I set it to something else my dice appear correctly in the simulator.

Unity3d always shuts down when launching on iOS

I have a weird bug with my game on iOS platform.
When I build it from xCode it works great no matter how many times I run it. When I leave that build on iPhone 6s for one day it can't be opened anymore. When I click on icon it only shows black screen and then returns to home screen. If I double click menu button, the game is in active tasks and I can see that the game was loaded. But it cant be opened. Its like its always minimised or that graphics are failing.
I am using Unity 5.3.4f1 and graphic api is set to OpenGLES 2.0.
Has anyone else run to a problem like this?
Any suggestions or fix?
Edit:
So after testing it turns out it only happens with build from xCode and not with version that is on app store. So I guess it has something to do with provisioning profiles or similar.

Cocos2d-x game doesn't respond to touch on iOS9

I've developed a game in Cocos2d-X for iPads. I've tested it on several iPads and it worked great but after I published it to the App Store a few users complained that the game is completely unresponsive, meaning, all the animations are running but the game doesn't respond to touch events.
I have tried reproducing the problem but even if I use the exact same device with the exact same iOS version I still can't reproduce it. All the users who complained are running various versions of iOS9.
I have quite a few installs so it appears the problem only affects a small percentage of my users, but it still affects them. And for these users the game is always unresponsive, no matter how many times they run it or install\uninstall it.
I'm working with cocos2d-x 3.6.
Did anyone encounter such a problem or have any idea what might cause it?
Thanks!
Strangely enough, the problem was the MFMailComposeViewController. I mistakenly attempted to allocate it at startup without checking its canSendMail method. Apparently in iOS 9 it causes some kind of problem that blocks touches to my app.

Display Issue on IOS device when build from unity to xcode

I was having problem when building my project for IPhone 6+. So I made a simple scene in unity which has a simple camera and a ball gameobject and exported it to XCode. but when I run it on ios device its upper half screen has some weird display issue. can somebody help?
reference images
Problem: https://www.gmonks.com/help/1.jpg
Camera setting: https://www.gmonks.com/help/2.png
Issue has been resolved. I have created a completely new project and imported all assets one by one, now project is building properly on IPhone. Although this issue still exist in the old project, creating new project seems the easiest fix to me. Few thing are different from my old project and new project, which are the setting of quality in project setting and Lighting in windows. I think I have messed up some value in there. If anyone wants to take look then please download the project file and if possible can explain why did this happened. anyways thank for your support.

Resources