-
Notifications
You must be signed in to change notification settings - Fork 92
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
1.0.1 is always installed instead of 2.2.1 #224
Comments
Probably the old version got installed globally for some reason. You can add a specific version to a Finally, make sure to run |
Hi @ashfurrow, thank you for the reply! I went ahead and gave your direction a go. I checked all of my ruby paths and ensured there weren't any global cocoapods-keys gems installed. I also have
The output indicates that version I looked around in the issues tracker and found #180, but I'm not sure if it's relevant or not. |
Ah, I see the issue. This is a misunderstanding – the
This is where |
Hmm, I'm not sure, actually. What does your Podfile look like? I have zero watchOS development experience so I'm not sure how to proceed. |
I added my Podfile in my previous comment, but I've actually modified it just a bit. Here's the updated Podfile:
This update was done to use I think one thing to note is that I'm trying to use the plugin for both targets. I don't know if that causes issues. |
Hmm, gotcha. Try moving the first use_frameworks!
plugin 'cocoapods-keys', {
:project => "ProjectName",
:target => "ProjectName",
:keys => [
// Bunch of keys
]
}
target 'ProjectName' do
platform :ios, '14.0'
# Pods for ProjectName
// Pods
end
target 'ProjectNameUITests' do
# Pods for testing
// Pods
end
target 'ProjectWatchExtensionName WatchKit Extension' do
platform :watchos, '7.0'
end This is how I've used the cocoa pods-keys plugin in the past: https://github.com/artsy/eidolon/blob/878747ca319eedf0992fbe8c01e238bc6cc78083/Podfile And it's been accessible automatically in the test target: Hopefully that works. Let us know! |
This didn't work either. Based on my observations (described below), it seems like only one target is able to use the plugin at a time because the source of the error alternates based on which plugin target is last declared. I could be wrong though. Podfile attempt 1 - Watch extension generates error
Podfile attempt 2 - Main app generates error
Podfile attempt 3 - Main app generates error
|
My current workaround is to move the generated files to the project and use it that way. |
That's a good workaround – thanks for sharing 🙇 |
I am developing an iOS app with a companion watchOS 7+ app. I noticed that version
1.0.1
of Keys is always installed after apod install
even though I have version2.2.1
of the plugin installed.1.0.1
doesn't seem to work with watchOS (or at least watchOS 7), so this is a blocker for me. How do I ensure that version2.2.1
of Keys is installed after I do apod install
and enter the keys that my app uses?The text was updated successfully, but these errors were encountered: