A suite of iOS development-related functions.
This project is open source under the Apache Public License v2 and is developed by
Axway, Inc and the community. Please read the LICENSE
file included
in this distribution for more information.
IOS Utilities Library
License: Other
A suite of iOS development-related functions.
This project is open source under the Apache Public License v2 and is developed by
Axway, Inc and the community. Please read the LICENSE
file included
in this distribution for more information.
Hey @ingo @cb1kenobi @jhaynie are there any major planned API changes for this library.
I've started the process of updating hyperloop-ios/lib/library.js to use the new library.
I'm driving the upgrade via the unit test ( really happy to see them there).
I just wanted to make sure that no additional major breakage is likely until Developer Preview 2 comes out. I get the "why". I just making sure that I'm not being prematurely too ambitious.
After commit 78a75b, 64-bit simulator detection was removed for unspecified reasons. Before you could query if a simulator is 64 bit with simulator["64bit"], and now you cannot.
You should not trim lines here. It breaks pretty prints.
The docs are unclear on this.
The current version of this library got rid of the settings function.
This is important, because hyperloop for iOS does not run with Xcode 6.
I attempted to update the package.json.
When I do that I get the following error message
/Users/andrewmcelroy/repos/appcelerator-core-projects/hyperloop/hyperloop-ios/lib/library.js:143
xcode.settings(function(err,settings){
^
TypeError: Object #<Object> has no method 'settings'
at Object.getArchitectures (/Users/andrewmcelroy/repos/appcelerator-core-projects/hyperloop/hyperloop-ios/lib/library.js:143:8)
at collectArchitectures (/Users/andrewmcelroy/repos/appcelerator-core-projects/hyperloop/hyperloop-common/lib/commands/compile/index.js:413:19)
at /Users/andrewmcelroy/repos/appcelerator-core-projects/hyperloop/hyperloop-common/lib/commands/compile/index.js:107:5
at /Users/andrewmcelroy/repos/appcelerator-core-projects/hyperloop/hyperloop-common/node_modules/async/lib/async.js:116:25
at Object.<anonymous> (/Users/andrewmcelroy/repos/appcelerator-core-projects/hyperloop/hyperloop-common/node_modules/async/lib/async.js:24:16)
at Hook._fireHookCallback (/Users/andrewmcelroy/repos/appcelerator-core-projects/hyperloop/hyperloop-common/lib/hook.js:295:12)
at /Users/andrewmcelroy/repos/appcelerator-core-projects/hyperloop/hyperloop-common/lib/hook.js:274:10
at /Users/andrewmcelroy/repos/appcelerator-core-projects/hyperloop/hyperloop-common/node_modules/async/lib/async.js:229:13
at async.eachSeries (/Users/andrewmcelroy/repos/appcelerator-core-projects/hyperloop/hyperloop-common/node_modules/async/lib/async.js:127:20)
at _asyncMap (/Users/andrewmcelroy/repos/appcelerator-core-projects/hyperloop/hyperloop-common/node_modules/async/lib/async.js:223:9)
What was settings changed to?
ioslib return the devices information is not accurate。
even my computer did not connected any device. It also return random devices information once connected before.
when I connect only my iPhone on the computer, ioslib also return random devices information once connected before. sometimes include my iPhone information.
trying to run below command to open app in simulator :
Titanium sdk : 7.4.0.GA and Xcode 10.0
sh-3.2# node -v
v10.19.0
sh-3.2# npm -v
6.13.4
sh-3.2# tn -v
4.2.0
sh-3.2# ti -v
5.2.2
tn iphone-8
Getting below error trace :
[TRACE] ** BUILD SUCCEEDED **
[INFO] Finished building the application in 8s 689ms
[INFO] Launching iOS Simulator
[TRACE] [ioslib] Selected iOS Simulator: iPhone 8 iOS 12.0
[TRACE] [ioslib] UDID = 40F2378E-24BC-459C-9E1E-5BA7488BB853
[TRACE] [ioslib] iOS = 12.0
[TRACE] [ioslib] Autoselected Xcode: 10.0
[TRACE] [ioslib] Checking if the simulator /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator is already running
[TRACE] [ioslib] Simulator is not running
[TRACE] [ioslib] Tailing iPhone 8 iOS 12.0 Simulator system log: /Users/Username/Library/Logs/CoreSimulator/40F2378E-24BC-459C-9E1E-5BA7488BB853/system.log
[ERROR] Simulator is not available
attaching system log for more information.
Tried all from this #97 but no luck :(
It seems we should fail more gracefully in these cases:
[TRACE] [ioslib] Selected iOS Simulator: iPhone Xs
[TRACE] [ioslib] UDID = C1DA8BBA-CF17-4F7F-961D-E38060AD1617
[TRACE] [ioslib] iOS = 12.4
[TRACE] [ioslib] Autoselected Xcode: 10.3
[TRACE] [ioslib] Checking if the simulator /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator is already running
[TRACE] [ioslib] Simulator is not running
[TRACE] [ioslib] Tailing iPhone Xs Simulator system log: /Users/douglashennrich/Library/Logs/CoreSimulator/C1DA8BBA-CF17-4F7F-961D-E38060AD1617/system.log
[ERROR] Simulator is not available
full system.log
:
system.log
Hi,
I was trying to take a package for Appstore release with Titanium SDK 9.3.2GA with XCode 12. After compiling the javascritp code the console shows the below error message,
If using Appcelerator Studio,
Error: <terminated> iOS iTunes Distribution [ my-app-name-here] Application packager
if using VSCode:
[INFO] Processing JavaScript files
[INFO] Writing app properties
2021-05-09T16:30:26.937Z | ERROR | An uncaught exception was thrown!
The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Object
2021-05-09T16:30:26.937Z | ERROR | The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Object
Process exited with 1
The terminal process terminated with exit code: 1.
I tried by providing all the permissions to XCode & Studio but still not succeeded.
The ironey is that I am still able to run the project in both Android & iOS emulators. There is no issues as such with run/ debug. But only with the packaging.
Can some one help me in this regard please ?
Titanium SDK 9.3.2GA
➜ Desktop node -v
v0.10.13
➜ Desktop git clone --recursive [email protected]:appcelerator/ioslib.git
Cloning into 'ioslib'...
remote: Counting objects: 594, done.
remote: Total 594 (delta 0), reused 0 (delta 0), pack-reused 594
Receiving objects: 100% (594/594), 304.83 KiB | 0 bytes/s, done.
Resolving deltas: 100% (350/350), done.
Checking connectivity... done.
➜ Desktop cd ioslib
➜ ioslib git:(master) sudo npm install
npm WARN package.json [email protected] license should be a valid SPDX license expression
[email protected] install /Users/andrewmcelroy/Desktop/ioslib/node_modules/node-ios-device
node-gyp rebuild
gyp: binding.gyp not found (cwd: /Users/andrewmcelroy/Desktop/ioslib/node_modules/node-ios-device) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/andrewmcelroy/Desktop/ioslib/node_modules/node-ios-device
gyp ERR! node -v v0.10.13
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.13
npm ERR! npm v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node-ios-device package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls node-ios-device
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/andrewmcelroy/Desktop/ioslib/npm-debug.log
➜ ioslib git:(master) node-gyp rebuild
zsh: command not found: node-gyp
:)
While installing
npm i -g ioslib
Getting below error:
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: The sprintf package is deprecated in favor of sprintf-js.
> [email protected] install /usr/local/lib/node_modules/ioslib/node_modules/node-ios-device
> node ./bin/run.js node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/local/lib/node_modules/ioslib/node_modules/node-ios-device/binding'
gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/var/root/Library/Caches/node-gyp/10.19.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/ioslib/node_modules/node-ios-device/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/ioslib/node_modules/node-ios-device/.node-gyp'
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/local/lib/node_modules/ioslib/node_modules/node-ios-device/binding/node-v64-darwin-x64/node_ios_device.node" "--module_name=node_ios_device" "--module_path=/usr/local/lib/node_modules/ioslib/node_modules/node-ios-device/binding/node-v64-darwin-x64" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
gyp ERR! cwd /usr/local/lib/node_modules/ioslib/node_modules/node-ios-device
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/ioslib/node_modules/node-ios-device/binding/node-v64-darwin-x64/node_ios_device.node --module_name=node_ios_device --module_path=/usr/local/lib/node_modules/ioslib/node_modules/node-ios-device/binding/node-v64-darwin-x64 --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/ioslib/node_modules/node-ios-device/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Darwin 18.7.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/ioslib/node_modules/node-ios-device/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/ioslib/node_modules/node-ios-device
node-pre-gyp ERR! node -v v10.19.0
node-pre-gyp ERR! node-pre-gyp -v v0.14.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/ioslib/node_modules/node-ios-device/binding/node-v64-darwin-x64/node_ios_device.node --module_name=node_ios_device --module_path=/usr/local/lib/node_modules/ioslib/node_modules/node-ios-device/binding/node-v64-darwin-x64 --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node ./bin/run.js node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /var/root/.npm/_logs/2020-04-14T18_58_32_296Z-debug.log
Tried giving permission also but not working.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.