Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pod init failed in Xcode 16 #12583

Open
manikandanprabhur opened this issue Sep 17, 2024 · 32 comments
Open

pod init failed in Xcode 16 #12583

manikandanprabhur opened this issue Sep 17, 2024 · 32 comments

Comments

@manikandanprabhur
Copy link

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/usr/local/bin/pod init

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.15.2
        Ruby : ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]
    RubyGems : 3.0.3.1
        Host : macOS 14.6.1 (23G93)
       Xcode : 16.0 (16A242d)
         Git : git version 2.39.5 (Apple Git-154)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Error

RuntimeError - `PBXGroup` attempted to initialize an object with unknown ISA `PBXFileSystemSynchronizedRootGroup` from attributes: `{"isa"=>"PBXFileSystemSynchronizedRootGroup", "exceptions"=>["2AB3B2832C995E4700273321"], "explicitFileTypes"=>{}, "explicitFolders"=>[], "path"=>"DemoSample", "sourceTree"=>"<group>"}`
If this ISA was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project/object.rb:359:in `rescue in object_with_uuid'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project/object.rb:349:in `object_with_uuid'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project/object.rb:299:in `each'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project/object.rb:296:in `each'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project.rb:272:in `new_from_plist'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project/object.rb:290:in `block in configure_with_plist'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project/object.rb:287:in `each'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project/object.rb:287:in `configure_with_plist'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project.rb:272:in `new_from_plist'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project.rb:213:in `initialize_from_file'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.23.0/lib/xcodeproj/project.rb:113:in `open'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command/init.rb:41:in `validate!'
/Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:333:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=%60PBXGroup%60+attempted+to+initialize+an+object+with+unknown+ISA+%60PBXFileSystemSynchronizedRootGroup%60+from+attributes%3A+%60%7B%22isa%22%3D%3E%22PBXFileSystemSynchronizedRootGroup%22%2C+%22exceptions%22%3D%3E%5B%222AB3B2832C995E4700273321%22%5D%2C+%22explicitFileTypes%22%3D%3E%7B%7D%2C+%22explicitFolders%22%3D%3E%5B%5D%2C+%22path%22%3D%3E%22DemoSample%22%2C+%22sourceTree%22%3D%3E%22%3Cgroup%3E%22%7D%60%0AIf+this+ISA+was+generated+by+Xcode+please+file+an+issue%3A+https%3A%2F%2Fgithub.com%2FCocoaPods%2FXcodeproj%2Fissues%2Fnew&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...
Searching for inspections failed: undefined method `map' for nil:NilClass

@iramzyy
Copy link

iramzyy commented Sep 18, 2024

Same error

@amovexu
Copy link

amovexu commented Sep 18, 2024

waiting for update

@manikandanprabhur
Copy link
Author

Please follow the below steps to fix this issue

Step 1: Right click project Folder in Xcode and convert to group

Screenshot 2024-09-18 at 9 50 46 AM

Step 2: right click projectname.xcodeproj file and select Show Package Contents
you can see the file project.pbxproj and open with texteditor

Remove the following lines in this file
minimizedProjectReferenceProxies = 1;
preferredProjectObjectVersion = 77;

Also update the below version
objectVersion = 77; to objectVersion = 56;

Now you can pod init and install with your project

@GengJian
Copy link

GengJian commented Sep 19, 2024

Please follow the below steps to fix this issue

Step 1: Right click project Folder in Xcode and convert to group

Screenshot 2024-09-18 at 9 50 46 AM

Step 2: right click projectname.xcodeproj file and select Show Package Contents you can see the file project.pbxproj and open with texteditor

Remove the following lines in this file minimizedProjectReferenceProxies = 1; preferredProjectObjectVersion = 77;

Also update the below version objectVersion = 77; to objectVersion = 56;

Now you can pod init and install with your project

It's working.

@WM520
Copy link

WM520 commented Sep 20, 2024

不能解决

@WM520
Copy link

WM520 commented Sep 20, 2024

Please follow the below steps to fix this issue

Step 1: Right click project Folder in Xcode and convert to group

Screenshot 2024-09-18 at 9 50 46 AM **Step 2**: right click **projectname.xcodeproj** file and select Show Package Contents you can see the file **project.pbxproj** and open with texteditor

Remove the following lines in this file minimizedProjectReferenceProxies = 1; preferredProjectObjectVersion = 77;

Also update the below version objectVersion = 77; to objectVersion = 56;

Now you can pod init and install with your project

hi , sorry,I can't slove

@dulifu
Copy link

dulifu commented Sep 20, 2024

不能解决

我按照上面的方法解决了,你看看是不是步骤错了,或者也可以看看我的解决步骤:https://juejin.cn/post/7416270933789900815

@yingFormJiang
Copy link

same error

@androbotech
Copy link

Same error here, did nothing but just pod init on a fresh xcode project, and I tried editing the lines / converting to groups.

@axel-stig-andersson
Copy link

Same error here, did nothing but just pod init on a fresh xcode project, and I tried editing the lines / converting to groups.

Same here, modifying the pbxproj file further by removing the mentioned ISA PBXFileSystemSynchronizedRootGroup block like others have suggested allows me to init Pods (with warnings), but generates further errors on build. Editing the pbxproj file is not a stable workaround, waiting for CocoaPods to address it further.

@kundancodelab
Copy link

I am also getting the same error .

@Amdian
Copy link

Amdian commented Sep 24, 2024

Please follow the below steps to fix this issue

Step 1: Right click project Folder in Xcode and convert to group

Screenshot 2024-09-18 at 9 50 46 AM **Step 2**: right click **projectname.xcodeproj** file and select Show Package Contents you can see the file **project.pbxproj** and open with texteditor

Remove the following lines in this file minimizedProjectReferenceProxies = 1; preferredProjectObjectVersion = 77;

Also update the below version objectVersion = 77; to objectVersion = 56;

Now you can pod init and install with your project

well, after I did this, it worked

@peterpaulis
Copy link

+1 would love for this to be fixed

@im12345dev
Copy link

Any news about this issue?

@twototwoto
Copy link

twototwoto commented Sep 25, 2024

我遇到了类似问题,执行本文的操作步骤后,又遇到如下问题。(本地CocoaPods版本号为:1.15.2)

RuntimeError - PBXGroup attempted to initialize an object with unknown ISA PBXFileSystemSynchronizedRootGroup from attributes: {"isa"=>"PBXFileSystemSynchronizedRootGroup", "path"=>"XXXTests", "sourceTree"=>"<group>"}

https://stackoverflow.com/questions/78984326/cocoapods-pod-init-fails-with-unknown-isa-pbxfilesystemsynchronizedrootgroup-e 中的如下步骤解决了问题。

I am facing same issue in iOS 18.0 and XCode 16
Try this step by step it will be resolved.
Close Xcode
Go to your project folder remove Pods & Podfile.lock
Right Click on YOUR_PROJECT_NAME.xcodeproj Show Package Contents then open project.pbxproj
Replace every PBXFileSystemSynchronizedRootGroup with PBXGroup
Search for objectVersion should be like that objectVersion = 56; if not replace by 56
Pod install

@iOSDevDipesh
Copy link

Fixing Pod Init Failure in Xcode 16.0 | Step-by-Step Guide#Xcode16 #pod #podinit

https://youtu.be/DfxEByfscfk

@robert-f-woodward
Copy link

Hi, it still failed with me. I was building a framework and had SwiftTesting selected. I changed it to XCTest and it worked

@robert-f-woodward
Copy link

Dipesh,

also: MacBook Pro M3 Max, Sequoia 16.0

here is my log output

pod init

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/usr/local/Cellar/cocoapods/1.15.2/libexec/bin/pod init

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.15.2
        Ruby : ruby 3.3.2 (2024-05-30 revision e5a195edf6) [x86_64-darwin22]
    RubyGems : 3.5.11
        Host : macOS 15.0 (24A335)
       Xcode : 16.0 (16A242d)
         Git : git version 2.39.5 (Apple Git-154)
Ruby lib dir : /usr/local/Cellar/ruby/3.3.2/lib
Repositories : master - git - https://github.com/CocoaPods/Specs.git @ b21f24314e124b547cd90d0ca7aa59ea974ba023

               trunk - CDN - https://cdn.cocoapods.org/

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Error

RuntimeError - `PBXGroup` attempted to initialize an object with unknown ISA `PBXFileSystemSynchronizedRootGroup` from attributes: `{"isa"=>"PBXFileSystemSynchronizedRootGroup", "exceptions"=>["35FEAD582CA827B0003A8B06"], "path"=>"***", "sourceTree"=>"<group>"}`
If this ISA was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:359:in `rescue in object_with_uuid'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:349:in `object_with_uuid'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:299:in `each'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:296:in `each'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project.rb:272:in `new_from_plist'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:290:in `block in configure_with_plist'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:287:in `each'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:287:in `configure_with_plist'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project.rb:272:in `new_from_plist'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project.rb:213:in `initialize_from_file'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/xcodeproj-1.24.0/lib/xcodeproj/project.rb:113:in `open'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command/init.rb:41:in `validate!'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/claide-1.1.0/lib/claide/command.rb:333:in `run'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
/usr/local/Cellar/cocoapods/1.15.2/libexec/bin/pod:25:in `load'
/usr/local/Cellar/cocoapods/1.15.2/libexec/bin/pod:25:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=%60PBXGroup%60+attempted+to+initialize+an+object+with+unknown+ISA+%60PBXFileSystemSynchronizedRootGroup%60+from+attributes%3A+%60%7B%22isa%22%3D%3E%22PBXFileSystemSynchronizedRootGroup%22%2C+%22exceptions%22%3D%3E%5B%2235FEAD582CA827B0003A8B06%22%5D%2C+%22path%22%3D%3E%22***%22%2C+%22sourceTree%22%3D%3E%22%3Cgroup%3E%22%7D%60%0AIf+this+ISA+was+generated+by+Xcode+please+file+an+issue%3A+https%3A%2F%2Fgithub.com%2FCocoaPods%2FXcodeproj%2Fissues%2Fnew&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...
Searching for inspections failed: undefined method `map' for nil

@vmsilva
Copy link

vmsilva commented Sep 30, 2024

same problem here with onesignal on react-native

@BinGoBinBin
Copy link

You need to perform the "Convert to group" operation on all directories, including the Test directory.

@MMSuperD
Copy link

MMSuperD commented Oct 8, 2024

I am also getting the same error .

delete Tests and UITests ,TestsTarget and UITestsTarget, pod init success

@martg3
Copy link

martg3 commented Oct 11, 2024

The method functions correctly, but issues arise when attempting to run or build the project, preventing it from executing or compiling successfully.

error: Sandbox: bash(84265) deny(1) file-write-create Pods/resources-Pods/resources-to-copy-app.txt: Operation not permitted
realpath: illegal option -- m
usage: realpath [-q] [path ...]
:20: error: Unexpected failure

@gabe-push
Copy link

You need to perform the "Convert to group" operation on all directories, including the Test directory.

thank you so much!! This works ^

@pqthealth
Copy link

Please follow the below steps to fix this issue

Step 1: Right click project Folder in Xcode and convert to group

Screenshot 2024-09-18 at 9 50 46 AM **Step 2**: right click **projectname.xcodeproj** file and select Show Package Contents you can see the file **project.pbxproj** and open with texteditor

Remove the following lines in this file minimizedProjectReferenceProxies = 1; preferredProjectObjectVersion = 77;

Also update the below version objectVersion = 77; to objectVersion = 56;

Now you can pod init and install with your project

This worked for me but with additional steps. Also by the picture wasn't exactly clear which to right click on as my runner had several folders. Right click on the "OneSignalNotificationServiceExtension and select "Convert to Group". The other folders may have "Convert to Folder" option and that was the confusing part.

Next go into your project.pbxproj file and replace the objectVersion = 77 to 54. I tried 63 at first but that didn't work. That value should be located at the top of the file.

@elite-mob
Copy link

elite-mob commented Oct 15, 2024

Please follow the below steps to fix this issue

Step 1: Right click project Folder in Xcode and convert to group

Screenshot 2024-09-18 at 9 50 46 AM **Step 2**: right click **projectname.xcodeproj** file and select Show Package Contents you can see the file **project.pbxproj** and open with texteditor

Remove the following lines in this file minimizedProjectReferenceProxies = 1; preferredProjectObjectVersion = 77;

Also update the below version objectVersion = 77; to objectVersion = 56;

Now you can pod init and install with your project

@manikandanprabhur It works! But only for new native iOS apps. It’s not working for React Native Expo apps. I checked and I'm using the latest Expo version 51.0.37 and React Native 0.74.5, but I noticed the objectVersion in the .pbxproj file is 46, and the other two fields are missing. Also, I still can't get the pod libraries installed.

npx expo run:ios
⚠️ Something went wrong running pod install in the ios directory.
Command pod install failed.
└─ Cause: /bin/bash -c
set -e
#!/bin/bash

Copyright (c) Meta Platforms, Inc. and affiliates.

This source code is licensed under the MIT license found in the

LICENSE file in the root directory of this source tree.

set -e

PLATFORM_NAME="${PLATFORM_NAME:-iphoneos}"
CURRENT_ARCH="${CURRENT_ARCH}"

if [ -z "$CURRENT_ARCH" ] || [ "$CURRENT_ARCH" == "undefined_arch" ]; then
# Xcode 10 beta sets CURRENT_ARCH to "undefined_arch", this leads to incorrect linker arg.
# it's better to rely on platform name as fallback because architecture differs between simulator and device

if [[ "$PLATFORM_NAME" == *"simulator"* ]]; then
    CURRENT_ARCH="x86_64"
else
    CURRENT_ARCH="arm64"
fi

fi

@lint-ignore-every TXT2 Tab Literal

if [ "$CURRENT_ARCH" == "arm64" ]; then
cat <<\EOF >>fix_glog_0.3.5_apple_silicon.patch
diff --git a/config.sub b/config.sub
index 1761d8b..43fa2e8 100755
--- a/config.sub
+++ b/config.sub
@@ -1096,6 +1096,9 @@ case $basic_machine in
basic_machine=z8k-unknown
os=-sim
;;

  • arm64-*)

  •   basic_machine=$(echo $basic_machine | sed 's/arm64/aarch64/')
    
  •   ;;
    

    none)
    basic_machine=none-none
    os=-none
    EOF

    patch -p1 config.sub fix_glog_0.3.5_apple_silicon.patch
    fi

XCRUN="$(which xcrun)"
if [ -n "$XCRUN" ]; then
export CC="$(xcrun -find -sdk $PLATFORM_NAME cc) -arch C U R R E N T A R C H i s y s r o o t (xcrun -sdk $PLATFORM_NAME --show-sdk-path)"
export CXX="$CC"
else
export CC="$CC:-$(which gcc)"
export CXX="$CXX:-$(which g++ || true)"
fi
export CXX="$CXX:-$CC"

Remove automake symlink if it exists

if [ -h "test-driver" ]; then
rm test-driver
fi

Manually disable gflags include to fix issue facebook/react-native#28446

sed -i.bak -e 's/@ac_cv_have_libgflags@/0/' src/glog/logging.h.in && rm src/glog/logging.h.in.bak
sed -i.bak -e 's/HAVE_LIB_GFLAGS/HAVE_LIB_GFLAGS_DISABLED/' src/config.h.in && rm src/config.h.in.bak

./configure --host arm-apple-darwin

cat << EOF >> src/config.h
/* Add in so we have Apple Target Conditionals */
#ifdef APPLE
#include <TargetConditionals.h>
#include <Availability.h>
#endif

/* Special configuration for ucontext */
#undef HAVE_UCONTEXT_H
#undef PC_FROM_UCONTEXT
#if defined(x86_64)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
#elif defined(i386)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__eip
#endif
EOF

Prepare exported header include

EXPORTED_INCLUDE_DIR="exported/glog"
mkdir -p exported/glog
cp -f src/glog/log_severity.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/logging.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/raw_logging.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/stl_logging.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/vlog_is_on.h "$EXPORTED_INCLUDE_DIR/"

patching file config.sub
1 out of 1 hunks failed--saving rejects to config.sub.rej

pod install --repo-update --ansi exited with non-zero code: 1

@shafqat-muneer
Copy link

Please follow the below steps to fix this issue

Step 1: Right click project Folder in Xcode and convert to group

Screenshot 2024-09-18 at 9 50 46 AM **Step 2**: right click **projectname.xcodeproj** file and select Show Package Contents you can see the file **project.pbxproj** and open with texteditor

Remove the following lines in this file minimizedProjectReferenceProxies = 1; preferredProjectObjectVersion = 77;

Also update the below version objectVersion = 77; to objectVersion = 56;

Now you can pod init and install with your project

We also need to select convert to group option for [Project_Name]Tests and [Project_Name]UITests folders.

@Fatemeh-Balaei
Copy link

This approach worked for me:

step 1: changing the Testing system from default value to None like shown in the image when defining the project.

Screenshot 2024-10-26 at 6 20 57 PM

step 2: follow the procedure explained above:

#12583 (comment)

or

if you want to keep the default setting (Swift Testing with XCTest UI Tests) add the extra step: 'convert to group' for [Project_Name]Tests and [Project_Name]UITests folders.' as mentioned in

#12583 (comment)

@adampei
Copy link

adampei commented Nov 1, 2024

Please follow the below steps to fix this issue

Step 1: Right click project Folder in Xcode and convert to group

Screenshot 2024-09-18 at 9 50 46 AM **Step 2**: right click **projectname.xcodeproj** file and select Show Package Contents you can see the file **project.pbxproj** and open with texteditor

Remove the following lines in this file minimizedProjectReferenceProxies = 1; preferredProjectObjectVersion = 77;

Also update the below version objectVersion = 77; to objectVersion = 56;

Now you can pod init and install with your project

finally open build settings and search ENABLE_USER_SCRIPT_SANDBOXING set User Script Sandboxing to NO

image

It works again.

@iOSDevDipesh
Copy link

Fixing Pod Init Failure in Xcode 16.0 | Step-by-Step Guide#Xcode16 #pod #podinit

https://youtu.be/DfxEByfscfk

jajackleon added a commit to jajackleon/MVVM-C-Template that referenced this issue Nov 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@trickyc0d3r
Copy link

Nice... Ebanutsa kakoy fix blyad. Pryam vot zaebis.

@akshayAtThareja
Copy link

Try this step by step it will be resolved.

- Close XCode
- Go to your project folder remove Pods & Podfile.lock
- Right Click on YOUR_PROJECT_NAME.xcodeproj Show Package Contents then open project.pbxproj
- Replace every PBXFileSystemSynchronizedRootGroup with PBXGroup
- Search for objectVersion should be like that objectVersion = 56; if not replace by 56
- Pod install

@yuioo1748
Copy link

Update CocoaPods:

brew update
brew install cocoapods
pod repo update
pod --version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests