Skip to content

Commit b2f5b4a

Browse files
committed
Merge branch 'main' of https://github.com/tidev/ioslib into fix/xcode-16.3-compatibility
2 parents 89f3731 + 1ad5b3e commit b2f5b4a

14 files changed

+111
-229
lines changed

.github/workflows/cla.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
name: Verify contributor
99

1010
steps:
11-
- uses: tidev/tidev-cla-action@v1
11+
- uses: tidev/tidev-cla-action@v2
1212
with:
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Publish
22
on:
33
release:
4-
types: [ created ]
4+
types: [ published ]
55

66
jobs:
77
publish:
@@ -10,14 +10,12 @@ jobs:
1010

1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v3
14-
with:
15-
fetch-depth: 0
13+
uses: actions/checkout@v4
1614

1715
- name: Setup node
18-
uses: actions/setup-node@v2
16+
uses: actions/setup-node@v4
1917
with:
20-
node-version: '16'
18+
node-version: 20
2119
registry-url: 'https://registry.npmjs.org'
2220

2321
- name: Install dependencies
@@ -26,6 +24,5 @@ jobs:
2624

2725
- name: Publish to npm
2826
env:
29-
GH_TOKEN: ${{ github.token }}
3027
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31-
run: npm publish
28+
run: npm publish --tag ${{ github.event.release.prerelease && 'next' || 'latest' }}

.github/workflows/test.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test
2+
on:
3+
- pull_request
4+
- push
5+
6+
jobs:
7+
test:
8+
runs-on: macos-latest
9+
name: Test
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Setup node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
registry-url: 'https://registry.npmjs.org'
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
if: steps.node-cache.outputs.cache-hit != 'true'
24+
25+
- name: Run tests
26+
run: npm test

.npmignore

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
/node_modules
66
/npm-debug.log
77
/env.properties
8-
/junit_report.xml
9-
/Jenkinsfile
108

119
test/TestApp/info.plist
1210
test/TestApp/build

Jenkinsfile

-9
This file was deleted.

LICENSE

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Copyright TiDev, Inc. 4/7/2022-Present
12
Copyright 2014-2020 by Appcelerator, Inc.
23

34
Licensed under the Apache License, Version 2.0 (the "License");

README.md

+19-48
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,17 @@
11
# iOS Utility Library
22

33
> This is a library of utilities for dealing programmatically with iOS applications,
4-
used namely for tools like [Hyperloop](https://github.com/appcelerator/hyperloop)
5-
and [Titanium](https://github.com/appcelerator/titanium).
4+
used namely for tools like [Hyperloop](https://github.com/tidev/hyperloop)
5+
and [Titanium SDK](https://github.com/tidev/titanium-sdk).
66

77
ioslib supports Xcode 6 and newer.
88

9-
[![Build Status](https://travis-ci.org/appcelerator/ioslib.svg?branch=master)](https://travis-ci.org/appcelerator/ioslib)
10-
[![Dependency Status](https://david-dm.org/appcelerator/ioslib.svg)](https://david-dm.org/appcelerator/ioslib)
11-
[![devDependency Status](https://david-dm.org/appcelerator/ioslib/dev-status.svg)](https://david-dm.org/appcelerator/ioslib#info=devDependencies)
12-
[![NPM version](https://badge.fury.io/js/ioslib.svg)](http://badge.fury.io/js/ioslib)
13-
14-
[![NPM](https://nodei.co/npm-dl/ioslib.png)](https://nodei.co/npm/ioslib/)
15-
16-
## Prerequisites
17-
18-
This library current depends on [node-ios-device](https://github.com/appcelerator/node-ios-device)
19-
which supports Node.js 0.10 and Node 4.x through 8.x.
20-
219
## Installation
2210

2311
From NPM:
2412

2513
npm install ioslib
2614

27-
From GitHub:
28-
29-
npm install git://github.com/appcelerator/ioslib.git
30-
3115
## Examples
3216

3317
### Detect all the connected iOS devices:
@@ -210,45 +194,32 @@ npm run-script test-simulator
210194
npm run-script test-xcode
211195
```
212196

213-
## Known Issues
197+
## Contributing
214198

215-
Simulator tests fail due to issue with NSLog() calls not properly being logged
216-
and thus we don't know when tests are done. The result is the tests timeout.
199+
Interested in contributing? There are several ways you can help contribute to this project.
217200

218-
## Reporting Bugs or Submitting Fixes
201+
### New Features, Improvements, Bug Fixes, & Documentation
219202

220-
If you run into problems, and trust us, there are likely plenty of them at this
221-
point -- please create an [Issue](https://github.com/appcelerator/ioslib/issues)
222-
or, even better, send us a pull request.
203+
Source code contributions are always welcome! Before we can accept your pull request, you must sign a Contributor License Agreement (CLA). Please visit https://tidev.io/contribute for more information.
223204

224-
## Contributing
205+
### Donations
206+
207+
Please consider supporting this project by making a charitable [donation](https://tidev.io/donate). The money you donate goes to compensate the skilled engineeers and maintainers that keep this project going.
208+
209+
### Code of Conduct
210+
211+
TiDev wants to provide a safe and welcoming community for everyone to participate. Please see our [Code of Conduct](https://tidev.io/code-of-conduct) that applies to all contributors.
225212

226-
ioslib is an open source project. ioslib wouldn't be where it is now without
227-
contributions by the community. Please consider forking ioslib to improve,
228-
enhance or fix issues. If you feel like the community will benefit from your
229-
fork, please open a pull request.
213+
## Security
230214

231-
To protect the interests of the ioslib contributors, Appcelerator, customers
232-
and end users we require contributors to sign a Contributors License Agreement
233-
(CLA) before we pull the changes into the main repository. Our CLA is simple and
234-
straightforward - it requires that the contributions you make to any
235-
Appcelerator open source project are properly licensed and that you have the
236-
legal authority to make those changes. This helps us significantly reduce future
237-
legal risk for everyone involved. It is easy, helps everyone, takes only a few
238-
minutes, and only needs to be completed once.
215+
If you find a security related issue, please send an email to [[email protected]](mailto:[email protected]) instead of publicly creating a ticket.
239216

240-
[You can digitally sign the CLA](http://bit.ly/app_cla) online. Please indicate
241-
your email address in your first pull request so that we can make sure that will
242-
locate your CLA. Once you've submitted it, you no longer need to send one for
243-
subsequent submissions.
217+
## Stay Connected
244218

245-
## Contributors
219+
For the latest information, please find us on Twitter: [Titanium SDK](https://twitter.com/titaniumsdk) and [TiDev](https://twitter.com/tidevio).
246220

247-
The original source and design for this project was developed by
248-
[Jeff Haynie](http://github.com/jhaynie) ([@jhaynie](http://twitter.com/jhaynie)).
221+
Join our growing Slack community by visiting https://slack.tidev.io!
249222

250223
## Legal
251224

252-
Copyright (c) 2014-2017 by [Appcelerator, Inc](http://www.appcelerator.com). All
253-
Rights Reserved. This project is licensed under the Apache Public License,
254-
version 2. Please see details in the LICENSE file.
225+
Titanium is a registered trademark of TiDev Inc. All Titanium trademark and patent rights were transferred and assigned to TiDev Inc. on 4/7/2022. Please see the LEGAL information about using our trademarks, privacy policy, terms of usage and other legal information at https://tidev.io/legal.

lib/simulator.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const async = require('async');
1818
const EventEmitter = require('events').EventEmitter;
1919
const magik = require('./utilities').magik;
2020
const fs = require('fs');
21-
const mkdirp = require('mkdirp');
2221
const net = require('net');
2322
const path = require('path');
2423
const readPlist = require('./utilities').readPlist;
@@ -1129,7 +1128,9 @@ function launch(simHandleOrUDID, options, callback) {
11291128
// make sure the system log exists
11301129
if (!fs.existsSync(handle.systemLog)) {
11311130
var dir = path.dirname(handle.systemLog);
1132-
fs.existsSync(dir) || mkdirp.sync(dir);
1131+
if (!fs.existsSync(dir)) {
1132+
fs.mkdirSync(dir, { recursive: true });
1133+
}
11331134
fs.writeFileSync(handle.systemLog, '');
11341135
}
11351136

0 commit comments

Comments
 (0)