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

Unable to publish pod - Unrecognized visionos key. #12291

Open
1 task done
rlepinski opened this issue Feb 23, 2024 · 0 comments
Open
1 task done

Unable to publish pod - Unrecognized visionos key. #12291

rlepinski opened this issue Feb 23, 2024 · 0 comments

Comments

@rlepinski
Copy link

Report

When trying to publish a pod spec with visionos in it, i get a 422

opening connection to trunk.cocoapods.org:443...
opened
starting SSL for trunk.cocoapods.org:443...
SSL established, protocol: TLSv1.3, cipher: TLS_AES_128_GCM_SHA256
<- "POST /api/v1/pods?allow_warnings=false HTTP/1.1\r\nContent-Type: application/json; charset=utf-8\r\nAccept: application/json; charset=utf-8\r\nUser-Agent: CocoaPods/1.15.2\r\nAuthorization: Token 897405c64411a4ca6ebfc3a6270582df\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nHost: trunk.cocoapods.org\r\nContent-Length: 3872\r\n\r\n"
<- "{\"name\":\"Airship\",\"version\":\"18.0.0-beta.2\",\"summary\":\"Airship iOS SDK\",\"documentation_url\":\"https://docs.airship.com/platform/ios\",\"homepage\":\"https://www.airship.com\",\"authors\":{\"Airship\":\"support@airship.com\"},\"license\":{\"type\":\"Apache License, Version 2.0\",\"file\":\"LICENSE\"},\"source\":{\"git\":\"https://github.com/urbanairship/ios-library.git\",\"tag\":\"18.0.0-beta.2\"},\"module_name\":\"AirshipKit\",\"header_dir\":\"AirshipKit\",\"platforms\":{\"ios\":\"14.0\",\"tvos\":\"14.0\",\"watchos\":\"7.0\",\"visionos\":\"1.0\"},\"swift_versions\":\"5.0\",\"requires_arc\":true,\"default_subspecs\":[\"Basement\",\"Core\",\"Automation\",\"MessageCenter\",\"PreferenceCenter\",\"FeatureFlags\"],\"subspecs\":[{\"name\":\"Basement\",\"public_header_files\":[\"Airship/AirshipBasement/Source/Public/*.h\",\"Cocoapods/AirshipKit.h\"],\"source_files\":[\"Airship/AirshipBasement/Source/Public/*.h\",\"Airship/AirshipBasement/Source/Internal/*.{h,m}\",\"Cocoapods/AirshipKit.h\"],\"private_header_files\":\"Airship/AirshipBasement/Source/Internal/*.h\",\"exclude_files\":\"Airship/AirshipBasement/Source/Public/AirshipBasement.h\",\"libraries\":[\"z\",\"sqlite3\"],\"frameworks\":[\"UserNotifications\",\"CFNetwork\",\"CoreGraphics\",\"Foundation\",\"Security\",\"UIKit\",\"CoreData\"],\"visionos\":{\"frameworks\":[\"WebKit\",\"SystemConfiguration\"]},\"ios\":{\"frameworks\":[\"WebKit\",\"CoreTelephony\",\"SystemConfiguration\"]},\"tvos\":{\"frameworks\":\"SystemConfiguration\"},\"watchos\":{\"frameworks\":\"WatchKit\"}},{\"name\":\"Core\",\"source_files\":\"Airship/AirshipCore/Source/*.{swift}\",\"resource_bundles\":{\"AirshipCoreResources\":\"Airship/AirshipCore/Resources/*\"},\"exclude_files\":[\"Airship/AirshipCore/Resources/Info.plist\",\"Airship/AirshipCore/Source/AirshipCore.h\"],\"libraries\":[\"z\",\"sqlite3\"],\"frameworks\":[\"UserNotifications\",\"CFNetwork\",\"CoreGraphics\",\"Foundation\",\"Security\",\"UIKit\",\"CoreData\"],\"ios\":{\"frameworks\":[\"WebKit\",\"CoreTelephony\",\"SystemConfiguration\",\"StoreKit\"]},\"tvos\":{\"frameworks\":\"SystemConfiguration\"},\"watchos\":{\"frameworks\":\"WatchKit\"},\"dependencies\":{\"Airship/Basement\":[]}},{\"name\":\"Automation\",\"ios\":{\"source_files\":\"Airship/AirshipAutomation/Source/**/*.{h,m,swift}\",\"exclude_files\":\"Airship/AirshipAutomation/Source/AirshipAutomation.h\",\"resource_bundles\":{\"AirshipAutomationResources\":\"Airship/AirshipAutomation/Resources/**/*\"}},\"visionos\":{\"source_files\":\"Airship/AirshipAutomation/Source/**/*.{h,m,swift}\",\"exclude_files\":\"Airship/AirshipAutomation/Source/AirshipAutomation.h\",\"resource_bundles\":{\"AirshipAutomationResources\":\"Airship/AirshipAutomation/Resources/**/*\"}},\"dependencies\":{\"Airship/Core\":[]}},{\"name\":\"MessageCenter\",\"ios\":{\"source_files\":\"Airship/AirshipMessageCenter/Source/**/*.{h,m,swift}\",\"exclude_files\":\"Airship/AirshipMessageCenter/Source/AirshipMessageCenter.h\",\"resource_bundles\":{\"AirshipMessageCenterResources\":\"Airship/AirshipMessageCenter/Resources/**/*\"}},\"visionos\":{\"source_files\":\"Airship/AirshipMessageCenter/Source/**/*.{h,m,swift}\",\"exclude_files\":\"Airship/AirshipMessageCenter/Source/AirshipMessageCenter.h\",\"resource_bundles\":{\"AirshipMessageCenterResources\":\"Airship/AirshipMessageCenter/Resources/**/*\"}},\"dependencies\":{\"Airship/Core\":[]}},{\"name\":\"PreferenceCenter\",\"ios\":{\"source_files\":\"Airship/AirshipPreferenceCenter/Source/**/*.{h,m,swift}\",\"exclude_files\":\"Airship/AirshipPreferenceCenter/Source/AirshipPreferenceCenter.h\"},\"visionos\":{\"source_files\":\"Airship/AirshipPreferenceCenter/Source/**/*.{h,m,swift}\",\"exclude_files\":\"Airship/AirshipPreferenceCenter/Source/AirshipPreferenceCenter.h\"},\"dependencies\":{\"Airship/Core\":[]}},{\"name\":\"FeatureFlags\",\"ios\":{\"source_files\":\"Airship/AirshipFeatureFlags/Source/**/*.{h,m,swift}\",\"exclude_files\":\"Airship/AirshipFeatureFlags/Source/AirshipFeatureFlags.h\"},\"visionos\":{\"source_files\":\"Airship/AirshipFeatureFlags/Source/**/*.{h,m,swift}\",\"exclude_files\":\"Airship/AirshipFeatureFlags/Source/AirshipFeatureFlags.h\"},\"dependencies\":{\"Airship/Core\":[]}}],\"swift_version\":\"5.0\"}\n"
-> "HTTP/1.1 422 Unprocessable Content\r\n"
-> "Server: Cowboy\r\n"
-> "Date: Fri, 23 Feb 2024 03:29:43 GMT\r\n"
-> "Report-To: {\"group\":\"heroku-nel\",\"max_age\":3600,\"endpoints\":[{\"url\":\"https://nel.heroku.com/reports?ts=1708658983&sid=929419e7-33ea-4e2f-85f0-7d8b7cd5cbd6&s=y0MOrmdyRUCPLJTZQAzIo%2BaY2upckNiHwbwEWnaNCnY%3D\"}]}\r\n"
-> "Reporting-Endpoints: heroku-nel=https://nel.heroku.com/reports?ts=1708658983&sid=929419e7-33ea-4e2f-85f0-7d8b7cd5cbd6&s=y0MOrmdyRUCPLJTZQAzIo%2BaY2upckNiHwbwEWnaNCnY%3D\r\n"
-> "Nel: {\"report_to\":\"heroku-nel\",\"max_age\":3600,\"success_fraction\":0.005,\"failure_fraction\":0.05,\"response_headers\":[\"Via\"]}\r\n"
-> "Connection: keep-alive\r\n"
-> "Strict-Transport-Security: max-age=31536000\r\n"
-> "Content-Type: application/json\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 111\r\n"
-> "Via: 1.1 vegur\r\n"
-> "\r\n"
reading 111 bytes...
-> "{\"error\":\"The Pod Specification did not pass validation.\",\"data\":{\"warnings\":[\"Unrecognized `visionos` key.\"]}}"
read 111 bytes
Conn keep-alive
[!] The Pod Specification did not pass validation.
The following validation failed:
- Warnings: Unrecognized `visionos` key.

What did you do?

pod trunk push Airship.podspec

What did you expect to happen?

To publish.

What happened instead?

Received warning about visionos key

CocoaPods Environment

ℹ Please replace these two lines with the output of pod env.

Stack

   CocoaPods : 1.15.2
        Ruby : ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin22]
    RubyGems : 3.4.6
        Host : macOS 14.0 (23A344)
       Xcode : 15.2 (15C500b)
         Git : git version 2.39.1
Ruby lib dir : /Users/ryan.lepinski/.rbenv/versions/3.2.0/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs.git @ 662baf3822715ea87109ec63916510cd4d9d204c

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

Installation Source

Executable Path: /Users/ryan.lepinski/.rbenv/versions/3.2.0/bin/pod

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Podfile

workspace 'Airship'
use_frameworks!

target 'AirshipTests' do
  platform :ios, '14.0'
  project 'Airship/Airship.xcodeproj'
  pod 'XcodeEdit', '~> 2.7'
end

target 'AirshipNotificationServiceExtensionTests' do
  platform :ios, '14.0'
  project 'AirshipExtensions/AirshipExtensions.xcodeproj'
end

target 'AirshipNotificationContentExtensionTests' do
  platform :ios, '14.0'
  project 'AirshipExtensions/AirshipExtensions.xcodeproj'
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
    end
  end
end

Project that demonstrates the issue

https://github.com/urbanairship/ios-library-dev/blob/main/Airship.podspec

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

1 participant