Skip to content

Commit b8f45cb

Browse files
committed
FAQ feedback [skip ci]
1 parent 9a18b7d commit b8f45cb

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

FAQ.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,22 @@ Now try building again.
7979

8080
### How do I develop with Xcode?
8181

82-
The J2ObjC Gradle Plugin configures your Xcode project with [CocoaPods](https://cocoapods.org/).
82+
The J2ObjC Gradle Plugin can configure your Xcode project with [CocoaPods](https://cocoapods.org/).
8383
To take advantage of this, specify the directory that contains `PROJECT.xcodeproj` as
84-
the `xcodeProjectDir` in your `j2objcConfig` per the [Quick Start Guide](README.md#quick-start-guide).
84+
the `xcodeProjectDir` in your shared `j2objcConfig` per the [Quick Start Guide](README.md#quick-start-guide).
85+
Gradle projects that `shared` depends on must not specify `xcodeProjectDir` so that only one project
86+
controls the Xcode updates.
8587

8688
After running `j2objcXcode`, open the `.xcworkspace` file in Xcode. If the `.xcodeproj` file
8789
is opened in Xcode then CocoaPods will fail. This will appear as an Xcode build time error:
8890

8991
library not found for -lPods-IOS-APP-j2objc-shared
9092

91-
If you don't use CocoaPods, do not specify the `xcodeProjectDir` option;
92-
you'll have to [manually](#how-do-i-manually-configure-my-xcode-project-to-use-the-translated-libraries)
93-
add the static libraries and translated header directories to your Xcode project,
94-
and `j2objcXcode` will not do anything.
93+
The above system uses CocoaPods and is the quickest way to build in Xcode with this plugin.
94+
If you wish to avoid using CocoaPods, do not specify the `xcodeProjectDir` option and instead
95+
[manually](#how-do-i-manually-configure-my-xcode-project-to-use-the-translated-libraries)
96+
add the static libraries and translated header directories to your Xcode project. The
97+
`j2objcXcode` task will not do anything.
9598

9699
Also see the FAQ note on [developing with Swift](#how-do-i-develop-with-swift).
97100

@@ -302,7 +305,9 @@ you'd like to access from Swift code.
302305

303306
### How do I manually configure my Xcode project to use the translated libraries?
304307

305-
If you do not want to use CocoaPods, you will need to modify your Xcode project's build settings.
308+
Using CocoaPods is the quickest way to use the plugin. To configure Xcode manually,
309+
you will need to modify your Xcode project's build settings.
310+
306311
In each case, you need to make sure the specification of the path is relative to the location
307312
of the Xcode project. We'll assume your J2ObjC distribution is at `/J2OBJC_HOME`.
308313

0 commit comments

Comments
 (0)