Build Build iOS with Development Certs for Instruments Debugging

I have an app with markers on a map that get slow when there are a lot of markers on the map.

The performance docs suggest that I can use Instruments to debug iOS builds.

But Instruments requires a build using development certificate / signing / mobile provision. And expo throws the following error when I use development certs.

)}, filePath: <DVTFilePath:0x7fa5e801f9f0:'/Users/expo/Library/MobileDevice/Provisioning Profiles/2f954b39-21dc-418c-a45a-b7d3ffc06272.mobileprovision'>>, NSLocalizedDescription=Provisioning profile "Provision for Self Signed and Development" is not an "iOS Ad Hoc" profile.}
** EXPORT FAILED **
ERROR [2018-11-19 18:59:31.71]: Exit status: 70
+---------------+-------------------------+
|            Build environment            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.99.0                  |
| export_method | ad-hoc                  |
| sdk           | iPhoneOS12.1.sdk        |
+---------------+-------------------------+
INFO [2018-11-19 18:59:31.80]: 
ERROR [2018-11-19 18:59:31.80]: Looks like fastlane ran into a build/archive error with your project
ERROR [2018-11-19 18:59:31.80]: It's hard to tell what's causing the error, so we wrote some guides on how
ERROR [2018-11-19 18:59:31.80]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
ERROR [2018-11-19 18:59:31.80]: Before submitting an issue on GitHub, please follow the guide above and make
ERROR [2018-11-19 18:59:31.80]: sure your project is set up correctly.
ERROR [2018-11-19 18:59:31.80]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
ERROR [2018-11-19 18:59:31.80]: the full commands printed out in yellow in the above log.
ERROR [2018-11-19 18:59:31.80]: Make sure to inspect the output above, as usually you'll find more error information there
INFO [2018-11-19 18:59:31.80]: 
[stderr] /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.99.0/fastlane_core/lib/fastlane_core/ui/interface.rb:163:in `build_failure!': [!] Error packaging up the application (FastlaneCore::Interface::FastlaneBuildFailure)
[stderr] 	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.99.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'

In a previous forum post, Charlie said you can’t use development certs for build:ios.

  1. Can you use development certs for build:ios?
  2. How can you build an ipa that can be used with Instruments debugging / profiler?

I ended up ejecting on a branch and building w/ XCode. I don’t think there is a better way right now.

But you can run systrace on a production app on Android if you have root on the OS

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.