Missing MapboxMobileEvents.framework/Info.plist
See original GitHub issueDescribe 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.
- 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
- 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
- Install Pods
cd ios && pod install && cd ..
- 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
No .plist file within “MapboxMobileEvents/Support Files”
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:
- Created 2 years ago
- Reactions:5
- Comments:9 (2 by maintainers)
Top GitHub Comments
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.
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