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

feat: support Xcode 12 #117

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
71 changes: 25 additions & 46 deletions lib/xcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,52 +40,6 @@ var cache,
* what Watch Simulator. It's a mystery!
*/
const simulatorDevicePairCompatibility = {
'>=6.2 <7.0': { // Xcode 6.2, 6.3, 6.4
'>=8.2 <9.0': { // iOS 8.2, 8.3, 8.4
'1.x': true // watchOS 1.0
}
},
'7.x': { // Xcode 7.x
'>=8.2 <9.0': { // iOS 8.2, 8.3, 8.4
'1.x': true // watchOS 1.0
},
'>=9.0 <=9.2': { // iOS 9.0, 9.1, 9.2
'>=2.0 <=2.1': true // watchOS 2.0, 2.1
},
'>=9.3 <10': { // iOS 9.3
'2.2': true // watchOS 2.2
}
},
'8.x': { // Xcode 8.x
'>=9.0 <=9.2': { // iOS 9.0, 9.1, 9.2
'>=2.0 <=2.1': true // watchOS 2.0, 2.1
},
'>=9.3 <10': { // iOS 9.x
'2.2': true, // watchOS 2.2
'3.x': true // watchOS 3.x
},
'10.x': { // iOS 10.x
'2.2': true, // watchOS 2.2
'3.x': true // watchOS 3.x
}
},
'9.x': { // Xcode 9.x
hansemannn marked this conversation as resolved.
Show resolved Hide resolved
'>=9.0 <=9.2': { // iOS 9.0, 9.1, 9.2
'>=2.0 <=2.1': true // watchOS 2.0, 2.1
},
'>=9.3 <10': { // iOS 9.x
'2.2': true, // watchOS 2.2
'3.x': true // watchOS 3.x
},
'10.x': { // iOS 10.x
'2.2': true, // watchOS 2.2
'3.x': true // watchOS 3.x
},
'11.x': { // iOS 11.x
'>=3.2 <4.0': true, // watchOS 3.2
'4.x': true // watchOS 4.x
}
},
'10.x <10.3': { // Xcode 10.0-10.2.1
'8.x': {}, // iOS 8.x
'>=9.0 <=9.2': { // iOS 9.0, 9.1, 9.2
Expand Down Expand Up @@ -144,6 +98,31 @@ const simulatorDevicePairCompatibility = {
'5.x': true, // watchOS 5.x
'6.x': true // watchOS 6.x
}
},
'12.x': { // Xcode 12.x
'10.x': { // iOS 10.x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Xcode 12 does not appear to support anything older than iOS 10.3, so this should be '>=10.3 <11'.

'2.2': true, // watchOS 2.2
'3.x': true // watchOS 3.x
},
'11.x': { // iOS 11.x
'>=3.2': true, // watchOS 3.2
'4.x': true // watchOS 4.x
},
'12.x': { // iOS 12.x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Xcode 12 allows you to pair watchOS 7 simulators with iOS 12 simulators, so this needs:

'7.x': true         // watchOS 7.x

'4.x': true, // watchOS 4.x
'5.x': true, // watchOS 5.x
'6.x': true // watchOS 6.x
},
'13.x': { // iOS 13.x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Xcode 12 allows you to pair watchOS 7 simulators with iOS 13 simulators, so this also needs:

'7.x': true         // watchOS 7.x

'4.x': true, // watchOS 4.x
'5.x': true, // watchOS 5.x
'6.x': true // watchOS 6.x
},
'14.x': { // iOS 14.x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Xcode 12 allows you to pair watchOS 4 simulators with iOS 14 simulators, so this needs:

'4.x': true         // watchOS 4.x

'5.x': true, // watchOS 5.x
'6.x': true, // watchOS 6.x
'7.x': true // watchOS 7.x
}
}
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ioslib",
"version": "1.7.20",
"version": "1.7.21",
"description": "iOS Utility Library",
"keywords": [
"appcelerator",
Expand Down