-
Notifications
You must be signed in to change notification settings - Fork 122
Missing Info.plist in MapboxEvents.framework error with CocoaPods 1.10.0 & Xcode 12.2. #555
Comments
Could be related to #503 |
Seems to be caused by MapboxMobileEvents changes to where the Info.plist is located. The current podspec only includes I'll try with |
Using a fixed version of I've now remove Mapbox from my Podfile and installed the prebuild Frameworks manually. |
I believe this has something to do with XCode 12.2, I am able to build fine on 12.1 but my coworker is not able to build with 12.2 |
I just ran into the same issue and the info.plist was literally missing from So I Copied the Info.plist from a co-workers system to the Support Files directory on my system and added it in the settings of the MapboxMobileEvents target and everything started working again. I'm at a complete loss why my system does not download this info.plist. It's the only file missing on my system, and cleaning derived data, the Pods directory and all other caches I can think of does not fix the problem. I simply don't understand why this is happening. |
Small update, I deleted the CocoaPods cache folder, ran Still not sure why this happens, but I suspect some problem with CocoaPods' caching system. Edit |
The same issue |
@ghadeeraqraa1992 Have you tried my solution? If you have this problem locally, you should remove all pod caches you can find ($HOME/Library/Caches/CocoaPods most notably), your Pods directory inside the project etc and reinitiate. It fixed the problem for me. The info.plist was literally missing in the Support Files of MapboxMobileEvents. |
I tried the below steps :
|
I got the same issue
any help ? |
Nothing I can do for you unfortunately. If you are sure you set the right version ( Edit: Also, while it is my belief that it's undrelated, I also installed all homebrew, apple system updates and rebooted the system before reinstalling my pods. You never know, always worth a shot |
could you please share your podfile , and @react-native-mapbox-gl/maps version ? |
Not the literal podfile since I have some custom stuff in there, but something similar to:
@react-native-mapbox-gl/maps version 8.2.0-beta2 |
my RN version is 0.63.4 |
Not likely related to the problem you are having, which I still believe is a caching problem. If I were you I would try to verify if the correct MapboxMobileEvents pod is loaded, the one where the Info.plist actually exists inside the MapboxMobileEvents/Support Files directory. As long as it doesn't you will keep having the problem. I can't help you any further, so I hope you can figure it out from here. Best of luck! |
Also, you can try to put the Info.plist there manually as I did, and verify if that fixes the problem. Then you actually have something to go on... With contents:
|
there is no Info.plist I tried to add it manually but this doesn't fix the issue |
I had same issue, and I tried @Hless 's solution, but only did some of it: did a repo update, did a pod deintegrate followed by pod install. |
@samuelcai-chancetop Glad to see that you got it working, albeit partially. I'm still very much confused why this happens. It hasn't happened to me for a long time now, nor did any of our CI tasks ever fail because of this issue. So I agree that this must be some sort of caching issue. Perhaps if you do all the steps it will fully fix it for you? I did verify the Pods cache when I first tried to fix it, and the info.plist was missing there too. Hence these suggestions. |
I’m running into this similar issue from a React Native project. I’ve tried all suggestions including clearing the cocoapod cache, reinstalling cocoapods, clearing all build directories, and creating a new project from scratch. Going to keep digging and post anything definitive I find. |
I ran into a similar issue after upgrading CocoaPods. I'm pretty sure I ran the following commands and that was enough to break it. Clearing caches/etc has not fixed it. Only fix for me is manually installing the file where it needs to be and adding it to the XCode target.
|
@Hless How did you add the info.plist from MapboxMobileEvents/Support Files to the MapboxMobileEvents target? |
It should prompt you when you drag the file into XCode |
Hi, i've also encountered this issue on M1 mac, and i figured out to fix it with arch -x86_64 pod install, that was the only thing that helped. Upd: Sometimes a reboot of a mac before pod install is needed as well. |
More instructions that might be helpful: SimulatorCopy original file into Pods project > Pods > MapboxMobileEvents > Support Files and make sure to add it to the target ( DeviceThis will get it to run on the Simulator but will give the following error on the device: "The code signature version is no longer supported." To get it to run on the device (and the Simulator), copy the file to the same folder and name it Go to the Pods project and select the MapboxMobileEvents target. Make sure this plist file is recognized in the General tab (it will prompt you if it doesn't know where the main plist file is) then select "Automatically Manage Signing" to sign the code after building. |
I tried all the methods mentioned above, but they didn't work, and when I debugged all the Cocoapod and XcodeProj in Ruby, it was confirmed that the problem occurred due to the special setting. It may be a unique case, but it is very simple to check, so I recommend you to try it... if I put this phrase in for the test and I was able to confirm that the file existed. Finally, I could solved adding this line on top of By the way, I don't know how I ended up assigning a specific Info.plist file to ENV... |
Missing Info.plist in MapboxEvents.framework error when installing Mapbox iOS SDK with CocoaPods 1.10.0 & Xcode 12.2.
Steps to reproduce
pod init
Expected behavior
App launches properly with Mapbox iOS SDK linked.
Actual behavior
Before the app actually launches Xcode shows the error of a missing Info.plist:
Removing
use frameworks!
from the Podfile as suggested here does not work either. Then, Mapbox.framework cannot find the statically linked MapboxEvents.framework and dynamic linking fails at app start.Configuration
Mapbox SDK versions: 6.3.0, 6.2.2
iOS/macOS versions: 14.2
Device/simulator models: any
Xcode version: 12.2
CocoaPods version: 1.10.0
The text was updated successfully, but these errors were encountered: