forcedotcom / SalesforceMobileSDK-Package

BSD 3-Clause "New" or "Revised" License
22 stars 20 forks source link

xcode build issue #212

Closed kai-wang closed 4 years ago

kai-wang commented 4 years ago

Hi there,

I got this issue when building in xcode.

Double-quoted include "YGMacros.h" in framework header, expected angle-bracketed instead

Changing to doesn't work.

My xcode version is Version 11.3.1 (11C505) cocoapod version is 1.8.0

wmathurin commented 4 years ago

We need more info. How did you generate your application? What version of Mobile SDK are you using?

kai-wang commented 4 years ago

I just generate the application by following instructions.

  1. forcereact create Enter the target platform(s) separated by commas (ios, android): ios Enter your application name: FirstReact Enter your package name: com.bestapps.ios Enter your organization name (Acme, Inc.): BestApps.com Enter output directory for your app (leave empty for the current directory): FirstReact

  2. In Xcode, open FirstReact/ios/FirstReact.xcworkspace. and then try to build and run and got the above issue.

The force react version is

forcereact version 8.3.0

I was wondering that was header search path issue and added $(SRCROOT)/../node_modules/react-native/ReactCommon as well, but didn't work.

image

jbachand commented 4 years ago

@kai-wang I had the same issue and the pre-released version of cocoapods fixes this. I'm not sure what caused it to break on older xcode versions.

Just run this before doing the next pod install and it clears it up: gem install cocoapods --pre

Also see for reference: https://stackoverflow.com/questions/63951540/googledatatransport-is-throwing-double-quoted-include-in-framework-header-expect

kai-wang commented 4 years ago

Thanks Jeff, that solved the problem