Linkmaps (iOS)

Linkmaps are text files generated during the linking phase when building your app. They are supported for each binary in an xcarchive upload and are required for some features of Emerge.

Generating

If you're building with Xcode, there are two project settings that control linkmap generation.
Write Link Map File = YES
Path to Link Map File = $(TARGET_TEMP_DIR)/$(PRODUCT_NAME)-LinkMap-$(CURRENT_VARIANT)-$(CURRENT_ARCH).txt

If you're using a third party build system, pass the -Wl,-map,file_path flag to the linker.

Packaging

Include all linkmaps in a folder named Linkmaps at the top level of your xcarchive. Here's an example folder structure for an archive with linkmaps:

- MyApp.xcarchive
  - Info.plist
  - dSYMs
    - MyApp.app.dSYM
  - Products
    - Applications
      - MyApp.app
  - Linkmaps
    - MyApp-LinkMap.txt