Search code examples
iosxcodeavcapturesessiontestflight

Build on device from Xcode versus downloaded from TestFlight - Issues


I have an issue when running my project on my device, but only if it has been downloaded from testFlight. It works fine when I build directly from Xcode to device.

Potentially relevant details - Using AVCaptureSession, my app records segments of video where it can switch between front/rear camera etc. I have handled orientation of each video so when playing back or merging with multiple videos they all play the correct way round.

The playback orientation works as expected on my devices when I've built directly from Xcode. Though from the app dowloaded from Testflight, the orientation of the videos are wrong way round.

Devices used iPhone 5S - 8.1 & iPad 2 7.1

As mentioned, this is only an issue from TestFlight builds. I've not posted any code as logic works fine from Xcode. I have used TestFlight a lot over the past year and not come across an issue like this before. It only seems isolated to this video playback.

If anyone has had similar issues and knows how to resolve or has suggestion, that would be much appreciated.


Solution

  • I discovered why my testFlight build was acting different from my Xcode build and it all came down to Build Configuration settings within Xcode

    I edited scheme which which brought up build options and within the Run option I changed Build Configuration from Debug to Release.

    enter image description here

    Although this never solved the video issue, it did allow the app to act as it would on release. I will now be able to continue test of my issue, but thought other people experiencing differences in their Xcode and test builds may wish to know about this setting.