Issues with CocoaPods and iOS Build in Xcode 16.0

Hi everyone,

I’m encountering an issue while building an iOS project using CocoaPods for dependency management. Before integrating CocoaPods, I was able to successfully build and run the project directly from Xcode after exporting from Cocos Creator. I would open the .xcodeproj file, and everything worked fine.

However, after initializing CocoaPods with pod init and pod install in the build/ios/proj directory, and opening the .xcworkspace file, the build process fails with the error: Framework 'Pods_test_publish_ios_mobile' not found. Currently, I haven’t added any dependencies—I’ve only initialized CocoaPods.

For context, I’m using Cocos Creator 3.8.0, Xcode 16.0, and CocoaPods 1.15.2.

Has anyone encountered this issue or knows how to resolve it? Any help would be greatly appreciated!

Thank you.

Try opening xcworkspace with xcode?

Hi @qgh, thanks for your reply. I’m not sure why, but this issue only occurs when I try to run the project on the iOS simulator. When I use a real device, everything works fine.

I’m running into the same issue.

My environment:

  • Cocos Creator: 3.8.7
  • Xcode: 26.2

I checked the “Skip update Xcode project” option during the iOS build process. I also just ran pod init and pod install, but I’m getting a “framework not found” error. I tried your suggestion but it didn’t work for me. Do you have any other ideas?