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 trunk push command Failed with Xcode12 #10065
Comments
I'm also experiencing the same issue. Minor difference in the error message |
A few others have experienced the same error in a different context. It seems that adding |
Maybe we have the same issue, If you pass
I tried to build
|
@mike-igaw I found a solution and managed to push my pod to trunk. My understanding of this issue is that the cocoapods validation step is trying to build a dummy Xcode project for all architecture types. In Xcode 12, Apple introduced support for Apple Silicon and it uses The solution is to explicitly exclude the
This will modify the pod and user build settings to exclude the The long term solution is to use an |
Excluding the simulator in the pod spec file has also allowed me to push to the trunk. Thx for the solution! |
This worked for me as well!. Thanks a lot! |
A lifesaver! thanks very much. The only way to get fat-frameworks pushed without reaching for --skip-import-validation |
What about deal with dependencies? If you have them in your Podspec? |
* fix this xcode 12 build CocoaPods/CocoaPods#10065 * update podspec so we can publish this
Thanks, --skip-import-validation can also work. |
Are all the reports here based on pods that are pre-built binaries or do they include sources too? |
@dnkoutso My pod is a pre-built binary. |
So my feeling is that pre-built pods that do not include I generally strongly discourage using |
That's my thinking on the matter too @dnkoutso. I dislike using |
|
It worked! I had to downgrade before and now i can upgrade again 😁 Thanks a lot! |
Would a better solution instead of using |
I've not been able to get builds to work with any of the above suggestions, we publish privately and have many dependencies both between internal pods and public. However I have resolved by modifying |
…lator target for Apple Silicon compatibility. CocoaPods/CocoaPods#10065 (comment)
* Fix image scaling function to support horizontal images * Fix typos * Patch bug introduced by Xcode 12 trying to support arm64 for the simulator target for Apple Silicon compatibility. CocoaPods/CocoaPods#10065 (comment) * Build for iOS 14.2 * Update podspec to include the tensorflowlite Metal subspec
In my case, this works
Note the specification for tvos spec with appletvsimulator sdk. I must confess that I don't understand why I do not need to do the same with |
Hello! I get the the warning |
Hi, Am new to react native expo projects, I tried to run my project in Macbook M1 chip and am facing the same issue and I don't know how to fix it. |
Report
What did you do?
ℹ Please replace these two lines with what you did.
e.g. Run
pod install
Run 'pod trunk push MyCocoaPodProject.podspec --verbose'
What did you expect to happen?
update my pod correctly.
ℹ Please replace these two lines with what you expected to happen.
e.g. Install all pod dependencies correctly.
Update my pod correctly.
What happened instead?
Update failed with error message.
Testing with
xcodebuild
.-> AdBrixRemasteredPreview (1.6.5210)
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
- NOTE | xcodebuild: note: Using new build system
- NOTE | xcodebuild: note: Building targets in parallel
- NOTE | xcodebuild: note: Using codesigning identity override: -
- NOTE | [iOS] xcodebuild: note: Planning build
- NOTE | [iOS] xcodebuild: note: Constructing build description
- NOTE | [iOS] xcodebuild: warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')
- NOTE | [iOS] xcodebuild: clang: error: linker command failed with exit code 1 (use -v to see invocation)
[!] The spec did not pass validation, due to 1 error.
/Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.5.0/lib/pod/command/trunk/push.rb:138:in
'validate_podspec' /Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.5.0/lib/pod/command/trunk/push.rb:72:in
run'/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in
run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:52:in
run'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/bin/pod:55:in
<top (required)>' /usr/local/bin/pod:23:in
load'/usr/local/bin/pod:23:in `
ℹ 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
Stack
Installation Source
Plugins
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: