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

Building iOS project fails because of old iOS version target #1800

Closed
hazg opened this issue Dec 16, 2023 · 3 comments · Fixed by #1812
Closed

Building iOS project fails because of old iOS version target #1800

hazg opened this issue Dec 16, 2023 · 3 comments · Fixed by #1812
Labels

Comments

@hazg
Copy link

hazg commented Dec 16, 2023

Command

npm run action cordova/build ios

Result

2023-12-16 09:29:05.030 xcodebuild[9653:49653] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2023-12-16 09:29:05.031 xcodebuild[9653:49653] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild clean -workspace /Users/dd/Sites/outline-client/src/cordova/apple/ios.xcworkspace -scheme Outline -destination generic/platform=iOS build -configuration Debug "CODE_SIGN_IDENTITY=\"\"" "CODE_SIGNING_ALLOWED=\"NO\""

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    CODE_SIGN_IDENTITY = ""
    CODE_SIGNING_ALLOWED = "NO"

Resolve Package Graph

Resolved source packages:
  CocoaLumberjack: https://github.com/CocoaLumberjack/CocoaLumberjack @ 3.8.0
  Sentry: https://github.com/getsentry/sentry-cocoa @ 7.31.5
  swift-log: https://github.com/apple/swift-log.git @ 1.5.2
  OutlineAppleLib: /Users/dd/Sites/outline-client/src/cordova/apple/OutlineAppleLib


note: Using new build system
note: Using codesigning identity override: ""
note: Build preparation complete

** CLEAN SUCCEEDED **

note: Using new build system
note: Using codesigning identity override: ""
note: Planning
Analyze workspace

Create build description
Build description signature: 50dc4635d0957726e64fe8e841b9e6da
Build description path: /Users/dd/Library/Developer/Xcode/DerivedData/ios-dvbyjimjrxnbaxfsiebzwwzvoxuw/Build/Intermediates.noindex/XCBuildData/50dc4635d0957726e64fe8e841b9e6da-desc.xcbuild

note: Build preparation complete
note: Building targets in dependency order
error: The package product 'CocoaLumberjackSwift' requires minimum platform version 11.0 for the iOS platform, but this target supports 9.0 (in target 'PacketTunnelProvider' from project 'OutlineAppleLib')
error: The package product 'CocoaLumberjack' requires minimum platform version 11.0 for the iOS platform, but this target supports 9.0 (in target 'PacketTunnelProvider' from project 'OutlineAppleLib')
error: The package product 'CocoaLumberjackSwift' requires minimum platform version 11.0 for the iOS platform, but this target supports 9.0 (in target 'OutlineCatalystApp' from project 'OutlineAppleLib')
error: The package product 'CocoaLumberjackSwift' requires minimum platform version 11.0 for the iOS platform, but this target supports 9.0 (in target 'OutlineTunnel' from project 'OutlineAppleLib')
error: The package product 'CocoaLumberjackSwift' requires minimum platform version 11.0 for the iOS platform, but this target supports 9.0 (in target 'OutlineSentryLogger' from project 'OutlineAppleLib')
** BUILD FAILED **


Environment

  • OS: Monterey 12.6.9
  • NPM: 9.6.7
  • Node.js: v18.17.1
  • Xcode: 13.3
@daniellacosse
Copy link
Contributor

Thanks for taking the time to send us an issue! Couple things that might be going on here -

  1. Would you be able to update XCode to a 14.x version? We're moving towards that as the standard version because of Mac Catalyst
  2. I wonder if maybe, since we're not specifying the target version for these components, it's defaulting to iOS 9.0, @sbruens did you run into this at all?

@daniellacosse daniellacosse changed the title Can't build under IOS Building iOS project fails because of old iOS version target Jan 8, 2024
@sbruens
Copy link
Contributor

sbruens commented Jan 8, 2024

  1. I wonder if maybe, since we're not specifying the target version for these components, it's defaulting to iOS 9.0, @sbruens did you run into this at all?

I think that's exactly what's happening. XCode 13 defaults to iOS 9.0. I haven't run into this myself, but I'm on XCode 14. Maybe we should explicitly specify a minimum version for our package? I can send a PR.

@sbruens
Copy link
Contributor

sbruens commented Jan 9, 2024

@hazg Thanks again for reporting this. I expect #1812 to resolve this, but let us know if you're still experiencing issues going forward!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants