Skip to content

Commit

Permalink
ci: Fix ObjC testing with latest Xcode (apache#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpogue committed Mar 20, 2024
1 parent c97845a commit 1974dbb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
os: [macos-latest]
os: [macos-14]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"objc-tests": "npm run objc-tests-lib && npm run objc-tests-framework",
"objc-tests-lib": "npm run xcodebuild -- -scheme CordovaLibTests",
"objc-tests-framework": "npm run xcodebuild -- -scheme CordovaFrameworkApp",
"xcodebuild": "xcodebuild -quiet test -workspace tests/cordova-ios.xcworkspace -destination \"platform=iOS Simulator,name=iPhone 8\" CONFIGURATION_BUILD_DIR=\"`mktemp -d 2>/dev/null || mktemp -d -t 'cordova-ios'`\"",
"xcodebuild": "xcodebuild -quiet test -workspace tests/cordova-ios.xcworkspace -destination \"platform=iOS Simulator,name=iPhone 15\" -derivedDataPath \"`mktemp -d 2>/dev/null || mktemp -d -t 'cordova-ios'`\"",
"preobjc-tests": "killall Simulator || true",
"unit-tests": "jasmine --config=tests/spec/unit.json",
"lint": "eslint . \"templates/cordova/lib/!(*.*)\""
Expand Down
2 changes: 1 addition & 1 deletion tests/CordovaLibTests/CDVPluginInitTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ - (void)setUp
// uncaught and the app crashes upon a failed STAssert (oh well).
// [self raiseAfterFailure];

self.appDelegate = [[UIApplication sharedApplication] delegate];
self.appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
[self.appDelegate createViewController];
self.viewController = self.appDelegate.viewController;
}
Expand Down

0 comments on commit 1974dbb

Please sign in to comment.