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

_Pods.xcodeproj doesn't contain shared schemes, breaking Carthage #253

Open
1 task done
ZevEisenberg opened this issue Dec 4, 2020 · 2 comments
Open
1 task done

Comments

@ZevEisenberg
Copy link
Contributor

Report

What did you do?

bash-3.2$ pod lib create Aliaser
Cloning `https://github.com/CocoaPods/pod-template.git` into `Aliaser`.
Configuring Aliaser template.
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.

------------------------------

To get you started we need to ask a few questions, this should only take a minute.

If this is your first time we recommend running through with the guide: 
 - https://guides.cocoapods.org/making/using-pod-lib-create.html
 ( hold cmd and double click links to open in a browser. )


What platform do you want to use?? [ iOS / macOS ]
 > 
ios
What language do you want to use?? [ Swift / ObjC ]
 > 
swift
Would you like to include a demo application with your library? [ Yes / No ]
 > 
yes
Which testing frameworks will you use? [ Quick / None ]
 > None

Would you like to do view based testing? [ Yes / No ]
 > No
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.

Running pod install on your new library.

Analyzing dependencies
Downloading dependencies
Installing Aliaser (0.1.0)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `Aliaser.xcworkspace` for this project from now on.
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

 Ace! you're ready to go!
 We will start you off by opening your project in Xcode
  open 'Aliaser/Example/Aliaser.xcworkspace'

To learn more about the template see `https://github.com/CocoaPods/pod-template.git`.
To learn more about creating a new pod, see `https://guides.cocoapods.org/making/making-a-cocoapod`.
bash-3.2$ cd Aliaser/
bash-3.2$ carthage build --platform iOS --no-use-binaries --no-skip-current
*** xcodebuild output can be found in /var/folders/97/5dzzw3210vx_p11c78cf354r0000gp/T/carthage-xcodebuild.YCSSQJ.log
*** Skipped building Aliaser due to the error:
Dependency "Aliaser" has no shared framework schemes for any of the platforms: iOS
bash-3.2$ 

What did you expect to happen?

The _Pods.xcodeproj alias at the top level should contain everything needed to build the framework.

What happened instead?

If you open the _Pods.xcodeproj alias directly, you find that it has no shared schemes, causing Carthage building to fail. This means that, out of the box, a pod created with the default template is not buildable with Carthage. According to @orta, the original intent of _Pods.xcodeproj was Carthage compatibility, so this may be a regression.

CocoaPods Environment

Stack

   CocoaPods : 1.10.0
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin19]
    RubyGems : 3.0.3
        Host : Mac OS X 10.15.7 (19H15)
       Xcode : 12.2 (12B5044c)
         Git : git version 2.29.2
Ruby lib dir : /Users/zev/.rbenv/versions/2.6.3/lib
Repositories : nytimes - git - git@github.com:nytm/ios-podspecs.git @ a9093a730f92b00f5feb6b1eb4b28e509fccab1a

               nytm - git - https://github.com/nytm/ios-podspecs.git @ f89528e2571ceeb9125da2aa61d08f515e44d68a

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

Installation Source

Executable Path: /Users/zev/.rbenv/versions/2.6.3/bin/pod

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.5.0
cocoapods-try         : 1.2.0

Project that demonstrates the issue

Attaching the project generated by the above commands, in case it's useful:

Aliaser.zip

I'm using Carthage 0.36.0 installed via Homebrew.

@dnkoutso
Copy link
Contributor

dnkoutso commented Dec 5, 2020

Huh, had no idea the intend was for it to work with Carthage....not sure if this belongs to pod-template repo or here but doesnt really matter tbh.

Could use some help here, seems fairly simple to fix.

@ZevEisenberg
Copy link
Contributor Author

Oh good call, forgot the template was a separate repo.

@dnkoutso dnkoutso transferred this issue from CocoaPods/CocoaPods Dec 18, 2020
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

2 participants