Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couldn't find platform family in Info.plist CFBundleSupportedPlatforms or Mach-O LC_VERSION_MIN for phantomjs

I am building a hybrid app using ionic and when I try to upload it to the app store, it gives me this error

Couldn't find platform family in Info.plist CFBundleSupportedPlatforms or Mach-O LC_VERSION_MIN for phantomjs

Has anyone encountered the same issue and found out how to fix it?

I suspect it comes from one the plugins or the node_modules that I use in my project that are causing the error..

like image 237
Marc Avatar asked Dec 30 '15 12:12

Marc


2 Answers

I solved this issue by removing unneeded files in my project. Specifically I have a Cartfile in my project and the Carthage Folder reference so that I can easily access it.

I removed the folder reference but I kept the Cartfile in my project. I made sure that the Cartfile is not in my Copy Bundle Resources build phase. One of these 2 fixed my problem.

like image 76
Jacob Avatar answered Sep 17 '22 12:09

Jacob


Had the same error, in my case the problem was that I had some DSYM files among my bundle resources.

Fixed it by removing all .DSYM files form Copy Bundle Resources build phase.

More info on this thread: https://github.com/Alamofire/Alamofire/issues/823

like image 35
marius Avatar answered Sep 16 '22 12:09

marius