You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Why is my clean build failing?](#why-is-my-clean-build-failing)
32
32
-[How do I include Java files from additional source directories?](#how-do-i-include-java-files-from-additional-source-directories)
33
33
-[How do I develop with Swift?](#how-do-i-develop-with-swift)
34
-
-[How do I solve 'File not found' import error in Xcode?](#how-do-i-solve-file-not-found-import-error-in-xcode)
34
+
-[How do I manually configure my Xcode project to use the translated libraries?](#how-do-i-manually-configure-my-xcode-project-to-use-the-translated-libraries)
35
35
-[How do I work with Package Prefixes?](#how-do-i-work-with-package-prefixes)
36
36
-[How do I enable ARC for my translated Objective-C classes?](#how-do-i-enable-arc-for-my-translated-objective-c-classes)
37
37
-[How do I call finalConfigure()?](#how-do-i-call-finalconfigure)
@@ -79,18 +79,22 @@ Now try building again.
79
79
80
80
### How do I develop with Xcode?
81
81
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/).
83
83
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.
85
87
86
88
After running `j2objcXcode`, open the `.xcworkspace` file in Xcode. If the `.xcodeproj` file
87
89
is opened in Xcode then CocoaPods will fail. This will appear as an Xcode build time error:
88
90
89
91
library not found for -lPods-IOS-APP-j2objc-shared
90
92
91
-
If you don't use CocoaPods, do not specify the `xcodeProjectDir` option;
92
-
you'll have to manually add the static libraries and translated header directories
93
-
to your Xcode project, 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
0 commit comments