Skip to content

Commit d43688a

Browse files
Add /opt/homebrew/bin/pod to IPhoneBuilder pod search paths (#4328)
Fixed #4084 Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent a5c39f0 commit d43688a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

maven/codenameone-maven-plugin/src/main/java/com/codename1/builders/IPhoneBuilder.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,12 @@ public boolean build(File sourceZip, BuildRequest request) throws BuildException
293293
if(!new File(pod).exists()) {
294294
pod = "/usr/bin/pod";
295295
if(!new File(pod).exists()) {
296-
log("You need to install cocoapods to proceed, to install cocoapods on your mac issue this command in the terminal: sudo gem install cocoapods --pre\n"
297-
+ "followed by: sudo gem install xcodeproj");
298-
return false;
296+
pod = "/opt/homebrew/bin/pod";
297+
if(!new File(pod).exists()) {
298+
log("You need to install cocoapods to proceed, to install cocoapods on your mac issue this command in the terminal: sudo gem install cocoapods --pre\n"
299+
+ "followed by: sudo gem install xcodeproj");
300+
return false;
301+
}
299302
}
300303
}
301304

0 commit comments

Comments
 (0)