Been trying to build an native iOS App that uses push notification, I have successfully done this on my personal iMac and need to find a way to accomplish this on a windows environment as our company dislikes having iMac in our production environment.

I have tried many different permutations can't get this to work.

REQUIRED INFORMATION

Ext version tested:
  • Sencha Touch 2.1.0 - gpl
  • Sencha Touch 2.1.0 - commercial
  • Sencha Touch 2.1.1 - gpl
  • Sencha Touch 2.1.1 - commercial
Devices tested against:
  • iPhone 4S
  • iPad 2
  • iPad Mini
Description:

Using device example app modifying the packager.json with the developer identity and provision files.

Steps to reproduce the problem:

On windows 7 or 8 enviroment

cd {sencha touch source}\examples\device\
sencha app build native

or

cd {sencha touch source}\examples\device\
sencha app build testing / package
sencha app packager build packager.json

Install app onto testing device, using iTunes or iPhone Configuration Utility.

Open the push tab and register device.

The result that was expected:

Displays device token.

The result that occurs instead:

Displays "failure: no valid 'aps-enviroment' entitlement string found for application"

HELPFUL INFORMATION

Debugging done:

I have build the same device example on windows and mac using the same provisioning files and developer identity, the mac osx app works as expected.

Comparing apps build on windows and mac osx

Windows -> Device Api.app\_CodeSignature\CodeResource
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>files</key>
    <dict/>
    <key>rules</key>
    <dict>
        <key>^Resources/</key>
        <true/>
        <key>^Resources/.*\.lproj/</key>
        <dict>
            <key>optional</key>
            <true/>
            <key>weight</key>
            <real>1000</real>
        </dict>
        <key>^Resources/.*\.lproj/locversion.plist$</key>
        <dict>
            <key>omit</key>
            <true/>
            <key>weight</key>
            <real>1100</real>
        </dict>
        <key>^version.plist$</key>
        <true/>
    </dict>
</dict>
</plist>
Mac OSX -> Device Api.app\_CodeSignature\CodeResource
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>files</key>
    <dict>
        <key>Info.plist</key>
        <data>
        NrxiH2r0vy+mYgWVAWnnhLu34rk=
        </data>
        <key>PkgInfo</key>
        <data>
        n57qDP4tZfLD1rCS43W0B4LQjzE=
        </data>
        <key>embedded.mobileprovision</key>
        <data>
        O8yH4n5QQmdkvTua0o/kJDrauOc=
        </data>
        <key>icon.png</key>
        <data>
        1SQzlER7TK5yRhsrJ6AA4lYcCf4=
        </data>
        <key>icon@2x.png</key>
        <data>
        0p3C8S1y0dDkJvt4y5s10d8+lM8=
        </data>
        <key>icon~ipad.png</key>
        <data>
        zz3+eSLXdBHgR77dAYvLkePphiU=
        </data>
        <key>icon~ipad@2x.png</key>
        <data>
        rn7En8gVHZDtYi2wjwRN5a6Y33I=
        </data>
        <key>webapp/app.js</key>
        <data>
        x9Dpq29Dae+tHQ/SZlPuF8C5uVI=
        </data>
        <key>webapp/app.json</key>
        <data>
        Gotjc/u/48Tdoi6NJw8jb4Zr4Hw=
        </data>
        <key>webapp/index.html</key>
        <data>
        9j4RWNhQ3+9JmE3i1mOA2gJ/4BE=
        </data>
        <key>webapp/resources/css/app.css</key>
        <data>
        M/eVCpuXU5aLcj6o69lIYpY30Og=
        </data>
        <key>webapp/resources/icons/Icon.png</key>
        <data>
        1SQzlER7TK5yRhsrJ6AA4lYcCf4=
        </data>
        <key>webapp/resources/icons/Icon@2x.png</key>
        <data>
        0p3C8S1y0dDkJvt4y5s10d8+lM8=
        </data>
        <key>webapp/resources/icons/Icon~ipad.png</key>
        <data>
        zz3+eSLXdBHgR77dAYvLkePphiU=
        </data>
        <key>webapp/resources/icons/Icon~ipad@2x.png</key>
        <data>
        rn7En8gVHZDtYi2wjwRN5a6Y33I=
        </data>
        <key>webapp/resources/icons/iTunesArtwork.png</key>
        <data>
        Ss2R2zsrF4dEyYT2qWEpdM80HS0=
        </data>
        <key>webapp/resources/icons/icon-spot~ipad.png</key>
        <data>
        XuIADQVhSAzON1j/Jx/IxlQEKhI=
        </data>
        <key>webapp/resources/startup/1496x2048.png</key>
        <data>
        VPnh0DfYrrX/o7sxg+APxF8Hm/M=
        </data>
        <key>webapp/resources/startup/1536x2008.png</key>
        <data>
        gv+ORJIKpzYJeRRU7TujRu2GqIA=
        </data>
        <key>webapp/resources/startup/320x460.jpg</key>
        <data>
        FJ9TehugoCR8f/KSJYB8Krj80QE=
        </data>
        <key>webapp/resources/startup/640x920.png</key>
        <data>
        rJSQ/2jYfIRcmrkXfKlBBivg4Dw=
        </data>
        <key>webapp/resources/startup/748x1024.png</key>
        <data>
        fri7XbqxDW0SWc1PSeXGw0iktZ0=
        </data>
        <key>webapp/resources/startup/768x1004.png</key>
        <data>
        k0aZXVYW+sSJXEEfqei7+bseUQc=
        </data>        
    </dict>
    <key>rules</key>
    <dict>
        <key>^</key>
        <true/>
        <key>^.*\.lproj/</key>
        <dict>
            <key>optional</key>
            <true/>
            <key>weight</key>
            <real>1000</real>
        </dict>
        <key>^.*\.lproj/locversion.plist$</key>
        <dict>
            <key>omit</key>
            <true/>
            <key>weight</key>
            <real>1100</real>
        </dict>
        <key>^version.plist$</key>
        <true/>
    </dict>
</dict>
</plist>
Operating System:
  • Windows 7
  • Windows 8
  • Mac OS X 10.8.1