ios - Apple Wallet: can't find pass.json because there is no such file -


i'm trying install pass made using walletpasses.io , i'm getting weird error:

/users/nsmyself/library/developer/coresimulator/devices/a47fafcc-2628-455b-84d2-8ed2cc3e4400/data/containers/data/application/09d67cb1-7cfb-423e-8e6d-e43a8d9c3dd6/library/caches/com.companyname.appname.dev/com.apple.passbook/9c988ad8-f541-478e-bdc4-dad1949c8616.pkpass/pass.json. file “pass.json” couldn’t opened because there no such file. 

here's internal structure of pass:

➜  pass ls -lah total 64 drwx------@  8 nsmyself  staff   272b jul 28 03:04 . drwx------+ 48 nsmyself  staff   1.6k jul 28 03:45 .. -rw-------@  1 nsmyself  staff   577b jul 28 02:58 icon.png -rw-r--r--@  1 nsmyself  staff   750b jul 28 02:57 icon@2x.png -rw-r--r--@  1 nsmyself  staff   753b jul 28 02:57 icon@3x.png -rwxr-xr-x@  1 nsmyself  staff    63b jul 26 16:14 manifest.json -rwxr-xr-x@  1 nsmyself  staff   1.5k jul 28 03:44 pass.json -rwxr-xr-x@  1 nsmyself  staff   3.0k jul 26 16:14 signature 

and, finally, contents of pass.json file:

{   "passtypeidentifier": "pass.com.companyname.appname.dev",   "formatversion": 1,   "serialnumber": "121212",   "description": "test pass",   "organizationname": "companyname",   "teamidentifier": "xxxxxxxxxx",   "logotext": "test pass",   "backgroundcolor": "rgb(89,174,45)",   "labelcolor": "rgb(0,0,0)",   "generic": {     "headerfields": [],     "primaryfields": [],     "secondaryfields": [],     "auxiliaryfields": [],     "backfields": []   } } 

here's content of manifest.json file:

{   "pass.json": "829afd2a05dfc6b3ef47e1fb0e5deb67e705e82e" } 

i've tried both adding pass programatically , dragging , dropping pass ios simulator keep getting same error.

i backtracked folder hierarchy console log indicates , seems com.apple.passbook folder empty, makes sense can't find pass.json.

as such, million dollar question why folder's empty in first place.

i should point out original pass did not have icon @ all. logs showed instantly , i've been trying install pass in simulator after adding missing (dummy) icons.

the person in charge of generating pass on vacations , such not have specifics on how pass created.

neither apple's documentation nor google have been particularly helpful. ideas what's going on here?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -