parse-community / Parse-SDK-iOS-OSX

The Apple SDK for Parse Platform (iOS, macOS, watchOS, tvOS)
https://parseplatform.org
Other
2.81k stars 864 forks source link

"Parse-Parse" target gets installed in Pods project with Cocoapods installation and provokes a compilation error #1662

Closed JohnRoxMySox23 closed 1 year ago

JohnRoxMySox23 commented 1 year ago

Issue Description

I have a project that needs Parse iOS SDK, so I still use Cocoapods for this library (all the other dependencies being handled with SPM). Every time I run pod install or pod update, a Parse-Parse target gets installed in the Pods project, and provokes an error when building the project:

Pods.xcodeproj error project: Signing for "Parse-Parse" requires a development team. Select a development team in the Signing & Capabilities editor.

Steps to reproduce

Create a project and add a Podfile inside, with Parse as a dependency. Then call pod install.

Actual Outcome

Here is the error that I get:

Capture d’écran 2022-09-29 à 12 08 47

Expected Outcome

No error on this

Environment

Client

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this issue!

mtrezza commented 1 year ago

Cocoapods is not officially supported anymore in this library, due to the fact that the SDK has several build issues since Xcode 12; what is supported is carthage; there are instructions on how to use carthage up to the latest version Xcode 14.

See https://github.com/parse-community/Parse-SDK-iOS-OSX/issues/1663

domfz commented 1 year ago

You can disable code signing of this target with

post_install do |installer|
    installer.pods_project.targets.each do |target|
      if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
        target.build_configurations.each do |config|
            config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
        end
      end
    end

  end

in the Podfile