question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing MapboxMobileEvents.framework/Info.plist

See original GitHub issue

Describe the bug After following the @react-native-mapbox-gl/maps installation instructions for iOS, the app was unable to be installed on a simulator because of a missing Info.plist file for MapboxMobileEvents.

To Reproduce Steps to reproduce the behavior.

  1. Create project and install @react-native-mapbox-gl/maps
react-native init MapboxMobileEventsBugReproduction --version 0.66.3
cd MapboxMobileEventsBugReproduction
npm install @react-native-mapbox-gl/maps@8.5.0 --save
  1. Modify Podfile by ensuring the following hooks exist
  pre_install do |installer|
    $RNMBGL.pre_install(installer)
    [ ... ]
  end

  post_install do |installer|
    $RNMBGL.post_install(installer)
    [ ... ]
  end
  1. Install Pods
cd ios && pod install && cd ..
  1. Open Xcode, target an iPhone 11 simulated device and click the “Start the active scheme” play button (Xcode)

Expected behavior MapboxMobileEventsBugReproduction installs and launches successfully on the simulated device.

Actual behavior After a successful build, while installing the app onto an iOS simulated device, a popup within Xcode is displayed saying that the app cannot be installed because of a missing Info.plist file within MapboxMobileEvents.

Screenshots

Error popup Screen Shot 2021-11-28 at 9 31 39 PM

No .plist file within “MapboxMobileEvents/Support Files” Screen Shot 2021-11-28 at 9 35 36 PM

Versions

  • Platform: iOS
  • Platform OS: iOS 15
  • Device: iPhone 12
  • Emulator/ Simulator: yes
  • Dev OS: macOS 11.6 BigSur
  • react-native-mapbox-gl Version: 8.5.0
  • Mapbox GL version: Mapbox-iOS-SDK 5.9.0
  • React Native Version: 0.66.3
  • Cocoapods: 1.11.2

Additional context

Simulator installation error
Details

Unable To Install “MapboxMobileEventsBugReproduction”
Domain: IXUserPresentableErrorDomain
Code: 1
Failure Reason: Please try again later.
Recovery Suggestion: Failed to load Info.plist from bundle at path /Users/puma/Library/Developer/CoreSimulator/Devices/22B466BB-CDA3-4124-BEDA-11F4F2E892AE/data/Library/Caches/com.apple.mobile.installd.staging/temp.qGbyjM/extracted/Payload/MapboxMobileEventsBugReproduction.app/Frameworks/MapboxMobileEvents.framework; Extra info about "/Users/puma/Library/Developer/CoreSimulator/Devices/22B466BB-CDA3-4124-BEDA-11F4F2E892AE/data/Library/Caches/com.apple.mobile.installd.staging/temp.qGbyjM/extracted/Payload/MapboxMobileEventsBugReproduction.app/Frameworks/MapboxMobileEvents.framework/Info.plist": Couldn't stat /Users/puma/Library/Developer/CoreSimulator/Devices/22B466BB-CDA3-4124-BEDA-11F4F2E892AE/data/Library/Caches/com.apple.mobile.installd.staging/temp.qGbyjM/extracted/Payload/MapboxMobileEventsBugReproduction.app/Frameworks/MapboxMobileEvents.framework/Info.plist: No such file or directory
User Info: {
    IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;
}
--
Failed to load Info.plist from bundle at path /Users/puma/Library/Developer/CoreSimulator/Devices/22B466BB-CDA3-4124-BEDA-11F4F2E892AE/data/Library/Caches/com.apple.mobile.installd.staging/temp.qGbyjM/extracted/Payload/MapboxMobileEventsBugReproduction.app/Frameworks/MapboxMobileEvents.framework; Extra info about "/Users/puma/Library/Developer/CoreSimulator/Devices/22B466BB-CDA3-4124-BEDA-11F4F2E892AE/data/Library/Caches/com.apple.mobile.installd.staging/temp.qGbyjM/extracted/Payload/MapboxMobileEventsBugReproduction.app/Frameworks/MapboxMobileEvents.framework/Info.plist": Couldn't stat /Users/puma/Library/Developer/CoreSimulator/Devices/22B466BB-CDA3-4124-BEDA-11F4F2E892AE/data/Library/Caches/com.apple.mobile.installd.staging/temp.qGbyjM/extracted/Payload/MapboxMobileEventsBugReproduction.app/Frameworks/MapboxMobileEvents.framework/Info.plist: No such file or directory
Domain: MIInstallerErrorDomain
Code: 35
User Info: {
    FunctionName = "-[MIBundle _validateWithError:]";
    LegacyErrorString = PackageInspectionFailed;
    SourceFileLine = 47;
}
--

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_model" = "iPhone13,2";
    "device_osBuild" = "15.0 (19A339)";
    "device_platform" = "com.apple.platform.iphonesimulator";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = "x86_64";
    "operation_duration_ms" = 2012;
    "operation_errorCode" = 1;
    "operation_errorDomain" = IXUserPresentableErrorDomain;
    "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher;
    "operation_name" = IDERunOperationWorkerGroup;
    "param_consoleMode" = 0;
    "param_debugger_attachToExtensions" = 0;
    "param_debugger_attachToXPC" = 1;
    "param_debugger_type" = 3;
    "param_destination_isProxy" = 0;
    "param_destination_platform" = "com.apple.platform.iphonesimulator";
    "param_diag_MainThreadChecker_stopOnIssue" = 0;
    "param_diag_MallocStackLogging_enableDuringAttach" = 0;
    "param_diag_MallocStackLogging_enableForXPC" = 1;
    "param_diag_allowLocationSimulation" = 1;
    "param_diag_gpu_frameCapture_enable" = 0;
    "param_diag_gpu_shaderValidation_enable" = 0;
    "param_diag_gpu_validation_enable" = 0;
    "param_diag_memoryGraphOnResourceException" = 0;
    "param_diag_queueDebugging_enable" = 1;
    "param_diag_runtimeProfile_generate" = 0;
    "param_diag_sanitizer_asan_enable" = 0;
    "param_diag_sanitizer_tsan_enable" = 0;
    "param_diag_sanitizer_tsan_stopOnIssue" = 0;
    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
    "param_diag_showNonLocalizedStrings" = 0;
    "param_diag_viewDebugging_enabled" = 1;
    "param_diag_viewDebugging_insertDylibOnLaunch" = 1;
    "param_install_style" = 0;
    "param_launcher_UID" = 2;
    "param_launcher_allowDeviceSensorReplayData" = 0;
    "param_launcher_kind" = 0;
    "param_launcher_style" = 0;
    "param_launcher_substyle" = 0;
    "param_runnable_appExtensionHostRunMode" = 0;
    "param_runnable_productType" = "com.apple.product-type.application";
    "param_runnable_swiftVersion" = "5.5.1";
    "param_runnable_type" = 2;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphonesimulator15.0";
    "sdk_osVersion" = "15.0";
    "sdk_variant" = iphonesimulator;
}
--


System Information

macOS Version 11.6 (Build 20G165)
Xcode 13.1 (19466) (Build 13A1030d)
Timestamp: 2021-11-28T21:32:11-06:00
Podfile
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'

target 'MapboxMobileEventsBugReproduction' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => false
  )

  target 'MapboxMobileEventsBugReproductionTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable the next line.
  use_flipper!()

  pre_install do |installer|
    $RNMBGL.pre_install(installer)
  end

  post_install do |installer|
    $RNMBGL.post_install(installer)
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end
end

Replicates https://github.com/react-native-mapbox-gl/maps/issues/1415

Seemingly related https://github.com/mapbox/mapbox-gl-native-ios/issues/555

Tried

  • Clearing Cococapod cache
  • Reintegrating Cocoapods
  • Reinstalling Cocoapods
  • Clearing ios build directory
  • Clearing DerivedData directory
  • /example project (same result)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tomgrecocommented, Dec 8, 2021

This issue has been haunting me for weeks. Usually clearing Pods, Podfile.lock, and doing a rain dance fixes it. But lately no luck at all.

0reactions
mfazekascommented, Mar 9, 2022

I’ve also seen this. pod clean, pod deintegrate, delete podfile.lock doesn't But then a restart fixed for me. Most likely a very weird Xcode issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing Info.plist in MapboxEvents.framework error ... - GitHub
Missing Info.plist in MapboxEvents.framework error when installing Mapbox iOS SDK with CocoaPods 1.10.0 & Xcode 12.2.
Read more >
All framework error when launch framework/Info.plist: No such ...
plist file missing in the frameworks. I rechecked and set the Embed mode to "Do not Embed" for each of the frameworks added...
Read more >
App Won't Compile with Embedded Third Party Framework
This sounds like the framework is missing its Info.plist file, and that's the real issue to solve. You should consult Google's support for...
Read more >
Mapbox Navigation SDK for iOS Reference
The Mapbox Navigation and Mapbox Core Navigation frameworks run on iOS 10.0 ... Make sure to keep it private and do not insert...
Read more >
MapboxMobileEvents - Swift Package Index
Mapbox Events Framework for iOS. Written by Jesse Bounds, Randall C Lee, and 32 other contributors. This package includes binary-only targets where source ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found