-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
APPLICATION_EXTENSION_API_ONLY is not set with Xcode 12 & CocoaPods 1.9.3 #10087
Comments
Please upload a sample app demonstrating the issue. |
Its very hard for us to diagnose with the given error report. |
@dnkoutso it's not difficult to reproduce. Before CocoaPods 1.8 |
@pronebird hmm We did have this #9233 that says 1.9.0 release and then this #9693 which is for 1.10.0. Have you tried 1.10.0.rc.1 by any chance? |
@dnkoutso yeah I saw that issue before & thought that it was fixed, but alas I couldn't build my Xcode project after updating from 1.5 -> 1.9.3. Then I downgraded to 1.8 - same issue, then 1.7.5 which worked. I haven't tried the 1.10 yet, but I can try it tomorrow morning. |
Thanks a lot for trying it out. I will try to find sometime myself to check out for prior versions. |
Please update here when you try 1.10 version. |
@dnkoutso so I have just installed the
Widget target has Pods project for the Today widget has |
It will really help to get a small sample project here that reproduces. |
@dnkoutso Alright, here you go. I have copied a sample old-fashion widget project by Apple & added CocoaPods 1.10.0.rc.1 and PureLayout pod with no other changes to the source code of the sample app. Git repo: https://github.com/pronebird/cocoapods-issue-10087 That's what I see on my end: |
Thank you so much! I will hopefully find time this week to take a look. |
I see what the problem is - the @dnkoutso it seems like this issue is due to relying on an implementation detail of CocoaPods. @pronebird - I've checked the uses of the if (@available(iOSApplicationExtension 10.0, *)) {
} else {
} |
@igor-makarov not sure at what point the |
So sorry, is this still an issue? I do not quite understand this:
|
The PureLayout developers are recommending a I have advised them how to resolve this in a more portable way on their end. I think we can close this, what do you think? |
Ah, @pronebird wdyt? I think we can close this yes. |
@dnkoutso I suppose this can be fixed with the proper use of @available as outlined by @igor-makarov. |
Sounds good! |
i am facing the issue in Xcode 13.1 and CocoaPods 1.11.2. Above links are not working which specified by @igor-makarov igor-makarov. @igor-makarov Need help on this. I have raise issue for this #11082 |
Report
What did you do?
I have the following post install hook to make PureLayout work with extensions on iOS:
But after updating to CocoaPods 1.9.3 & Xcode 12, the
APPLICATION_EXTENSION_API_ONLY
flag is never set leaving the build configuration broken for PureLayout when built against extensions.What did you expect to happen?
ℹ Please replace these two lines with what you expected to happen.
e.g. Install all pod dependencies correctly.
What happened instead?
ℹ Please replace these two lines with of what happened instead.
e.g. Pod A is missing the subspec B for target C.
CocoaPods Environment
ℹ Please replace these two lines with the output of
pod env
.e.g. via
pod env | pbcopy
Project that demonstrates the issue
ℹ Please link to a project we can download that reproduces the issue.
You can delete this section if your issue is unrelated to build problems,
i.e. it's only an issue with CocoaPods the tool.
The text was updated successfully, but these errors were encountered: