Cannot find <GoogleToolboxForMac/GTMNSData+zlib.h> error when building an ionic project for ios

时光总嘲笑我的痴心妄想 提交于 2019-12-23 03:24:06

问题


I came across this error when trying to build an ionic project for ios. It happened in the FirebaseCore build part of the process.

I found the problem was a bug in the following file on line 23:

platforms/ios/Pods/FirebaseCore/Firebase/Core/FIRNetwork.m

It seems the angle brackets don't allow the search for the file to start at the Pods level, whereas quotes allow a relative path to be used.

I found the solution was to do the following, so I thought I'd post it here in case anyone else has the same problem:

Either:

Change line 23 from:

#import <GoogleToolboxForMac/GTMNSData+zlib.h>

to:

#import "../../../GoogleToolboxForMac/Foundation/GTMNSData+zlib.h"

Or:

Add the following to the end of the Header Search Paths setting your Xcode project Build Settings:

"${PODS_ROOT}"

来源:https://stackoverflow.com/questions/51636994/cannot-find-googletoolboxformac-gtmnsdatazlib-h-error-when-building-an-ionic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!