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 lib create without demo project fails to create workspace #270

Open
jpeters-ml opened this issue Apr 27, 2023 · 2 comments
Open

pod lib create without demo project fails to create workspace #270

jpeters-ml opened this issue Apr 27, 2023 · 2 comments

Comments

@jpeters-ml
Copy link

jpeters-ml commented Apr 27, 2023

Hello,

I am using CocoaPods 1.12.1

After running the following command on the master branch of an empty repository:

pod lib create TempLib

And selecting no for demo project, there is no workspace to open so the script fails. Below is an output of the action:

pod lib create TestLib
Cloning `https://github.com/CocoaPods/pod-template.git` into `TestLib`.
Configuring TestLib template.

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

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 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 ]
 > No

Which testing frameworks will you use? [ Quick / None ]
 > None

Would you like to do view based testing? [ Yes / No ]
 > No
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>

Running pod install on your new library.

Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "TestLib":
  In Podfile:
    TestLib (from `../`)

Specs satisfying the `TestLib (from `../`)` dependency were found, but they required a higher minimum deployment target.

[!] Automatically assigning platform `iOS` with version `9.3` on target `TestLib_Tests` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

 Ace! you're ready to go!
 We will start you off by opening your project in Xcode
  open 'TestLib/Example/TestLib.xcworkspace'
The file /.../TestLib/Example/TestLib.xcworkspace does not exist.

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`.
@DeanNode
Copy link

I also encountered the same problem.

@DeanNode
Copy link

pod lib create rz-testplugin

Cloning https://github.com/CocoaPods/pod-template.git into rz-testplugin.
Configuring rz-testplugin 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:

What platform do you want to use?? [ iOS / macOS ]

ios

What language do you want to use?? [ Swift / ObjC ]

objc

Would you like to include a demo application with your library? [ Yes / No ]

no

Which testing frameworks will you use? [ Specta / Kiwi / None ]

none

Would you like to do view based testing? [ Yes / No ]

no

What is your class prefix?

rz
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.
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m

Running pod install on your new library.

Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "rz-testplugin":
In Podfile:
rz-testplugin (from ../)

Specs satisfying the rz-testplugin (from ../) dependency were found, but they required a higher minimum deployment target.

[!] Automatically assigning platform iOS with version 9.3 on target rz-testplugin_Tests because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.

Ace! you're ready to go!
We will start you off by opening your project in Xcode
open 'rz-testplugin/Example/rz-testplugin.xcworkspace'
The file /Users/wangjianwei/HbuildexProject/3.8.7/SDK/HBuilder-uniPluginDemo/custom-plugins/rz-testplugin/Example/rz-testplugin.xcworkspace does not exist.

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.
wangjianwei@wangjianweideMacBook-Pro custom-plugins % >....
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "rz-testplugin":
In Podfile:
rz-testplugin (from ../)

Specs satisfying the rz-testplugin (from ../) dependency were found, but they required a higher minimum deployment target.

[!] Automatically assigning platform iOS with version 9.3 on target rz-testplugin_Tests because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.

Ace! you're ready to go!
We will start you off by opening your project in Xcode
open 'rz-testplugin/Example/rz-testplugin.xcworkspace'
The file /Users/wangjianwei/HbuildexProject/3.8.7/SDK/HBuilder-uniPluginDemo/custom-plugins/rz-testplugin/Example/rz-testplugin.xcworkspace does not exist.

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.

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