Giter VIP home page Giter VIP logo

ioslib's Introduction

iOS Utility Library

A suite of iOS development-related functions.

Legal

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.

ioslib's People

Contributors

caspahouzer avatar cb1kenobi avatar dependabot-preview[bot] avatar dependabot[bot] avatar ewanharris avatar hansemannn avatar m1ga avatar sgtcoolguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ioslib's Issues

[Question] Is the API now reasonably stable?

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.

no more 64-bit simulator detection

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.

API incompatibility with 0.1.15

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?

Detect devices is wrong

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.

[ERROR] Simulator is not available

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.

system_ti_iphone8.log

Tried all from this #97 but no luck :(

Travis tests failing due to no connected devices and no provisioning profiles

It seems we should fail more gracefully in these cases:

  1. ioslib should find a device/cert/profile combination: Error: No iOS devices connected
  2. provisioning find best provisioning profiles with a cert, but without a device: Error: No provisioning profiles found to run this test
  3. provisioning find best provisioning profiles without a cert, but with a device: Error: No provisioning profiles found to run this test
  4. provisioning find best provisioning profiles with a cert and a device: Error: No provisioning profiles found to run this test
  5. provisioning watch for changes for 10 seconds: Error: watch ENOENT
  6. provisioning stop watching for updates: Error: watch ENOENT

[ERROR] Simulator is not available

[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

Titanium SDK 9.3.2GA- iOS 14 packaging error

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 ?

System environment :

OS : Mac BigSur 11.2.3

java -version
java version "15.0.2" 2021-01-19
Java(TM) SE Runtime Environment (build 15.0.2+7-27)

node -v
v14.16.1

XCode : 12

Titanium SDK 9.3.2GA

can't build when I clone down.

➜ 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

installation failed giving permission error!

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.