Page 1 of 9 123 ... LastLast
Results 1 to 10 of 87

Thread: [2.0.1RC] Native build seem to be broken

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2671 in a recent build.
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    6

    Default [2.0.1RC] Native build seem to be broken

    Native build for iOS was working without issues in 2.0.0


    After updating SDK tools to Beta2, SDK to 2.0.1-rc and upgrading the project app, native build is not working anymore.


    - "sencha app build native" seems to finish without errors, but it does shows the following message at the end: "Bundle Seed ID is missing from config file".
    - In the output build directory, now I have two files:
    MyApp.app
    Entitlements.entitlements
    - In 2.0.0, there was only MyApp.app, and I was able to install the app on the iPhone.
    - In 2.0.1, app installation on the iPhone fails.


    - The message "Bundle Seed ID is missing from config file" got me thinking, so I checked inside the MyApp.app, and there was no _CodeSignature/CodeResources file.
    - In packager.json, I had "applicationId" in the form:"<seed>.com.domain.appname". So I tried to change that to the following:
    "applicationId":"com.domain.appname",
    "bundleSeedId":"<seed>"
    ...
    - With this configuration, build seems to finish OK, without the bundle seed ID message and the "The application was successfully signed" message at the end.
    - Again, there are two files (.app and .entitlements) in output directory.
    - Within app, now there is _CodeSignature/CodeResources file.
    - Installing app into iPhone via iTunes syncing fails again.


    Relevant logs from iPhone:
    installd[3857] <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile
    installd[3857] <Error>: entitlement 'aps-environment' has value not permitted by a provisioning profile
    installd[3857] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile


    I tried removing dev provision profile from Mac and iPhone and Dev portal, creating new and installing and repeating the whole process, but the result is same.


    Does anyone else have this issue or an idea what is the problem here?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448

    Default

    Do you have a sample app we can use to look into this? ALso, what platform are you on?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    6

    Default

    - Mac OS X 10.7.3
    - SenchaSDKTools-2.0.0-beta2
    - sencha-touch-2.0.1-rc


    Attached is sample app TestApp.zip (without "sdk" folder because of the size limits of attachments) using the 3rd config from below (the one that gives the most appropriate result so far).


    Also steps to reproduce from scratch:

    COMMON SETUP

    Code:
    cd path/to/sencha-touch-2.0.1-rc/
    sencha generate app -n TestApp -p /tmp/TestApp 
    cd /tmp/TestApp/
    Fix app.json:
    Code:
    "buildPaths": {
      "testing": "../build/testing",
      "production": "../build/production",
      "package": "../build/package",
      "native": "../build/native"
    },


    First attempt with minimal changes only


    Fix packager.json:
    Code:
    "configuration":"Release",
    "platform":"iOS",
    Build:
    Code:
    sencha app build native
    Result:
    Code:
    Bundle Seed ID is missing from config file
    Two files in ../build/native/:
    Code:
    My Application.app
    Entitlements.entitlements
    Failed to install on iPhone


    Second attempt with adding seed ID to applicationId

    Fix packager.json:
    Code:
    "applicationId":"634C5D59SE.com.mycompany.myAppID",
    Build:
    Code:
    sencha app build native
    Result:
    Code:
    Bundle Seed ID is missing from config file
    Two files in ../build/native/:
    Code:
    My Application.app
    Entitlements.entitlements
    Failed to install on iPhone


    Third attempt with removing seed from applicationID, adding bundleSeedId (not documented option that seems to fix Bundle Seed ID message) and fixing certificate alias

    Fix packager.json:
    Code:
    "applicationId":"com.mycompany.myAppID",
    "bundleSeedId":"634C5D59SE",
    "certificateAlias":"iPhone Developer",

    Result:

    Code:
    [INFO] Packaging your application as a native app...
    [INFO] The application was successfully packaged
    The application was successfuly signed
    Two files in ../build/native/:
    Code:
    My Application.app
    Entitlements.entitlements
    Failed to install on iPhone


    Log from iPhone
    Code:
    installd[4761] <Error>: libMobileGestalt computeUniqueDeviceID: total time for bb to return imei: 0
    installd[4761] <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile
    installd[4761] <Error>: entitlement 'aps-environment' has value not permitted by a provisioning profile
    installd[4761] <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile
    installd[4761] <Error>: entitlement 'aps-environment' has value not permitted by a provisioning profile
    installd[4761] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
    installd[4761] <Error>: 2ff65000 verify_signer_identity: Could not copy validate signature: -402620394
    installd[4761] <Error>: 2ff65000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.oL3HwM/foo_extracted/Payload/My Application.app
    kernel[0] <Debug>: AppleKeyStore:cp_key_store_action(1)
    kernel[0] <Debug>: AppleKeyStore:Sending lock change
    installd[4761] <Error>: 2ff65000 install_application: Could not preflight application install
    com.apple.itunesstored[4767] <Notice>: MobileInstallationInstall: failed with -1
    > 
    installd[4761] <Error>: 2ff65000 handle_install: API failed
    installd[4761] <Error>: 2ff65000 send_message: failed to send mach message of 71 bytes: 10000003
    installd[4761] <Error>: 2ff65000 send_error: Could not send error response to client

  4. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448

    Default

    Oh wow. Thanks for all that! We will look into it!
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  5. #5
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    10

    Default

    I am experiencing the same issue as the above user. My system and source environment are the same as well. Are there any known workarounds?

  6. #6

    Default

    same here. same setup. any fix?

    btw it runs in the iossimulator just fine for me.



    my config

    {
    /**
    *DONT FORGET chmod a+x stbuild_template
    */
    "applicationName":"Restaurantes",
    "applicationId":"AF6KR9V5H6.com.ruimarinho.restaurantes",
    "versionString":"1.0",
    "iconName":"resources/icons/Icon~ipad.png",
    "inputPath":"build/native",
    "outputPath":"build/",
    "configuration":"Release",
    /**
    * @cfg {String} platform
    * @required
    * This is the platform where you will be running your application. Available options are:
    * - iOSSimulator
    * - iOS
    * - Android
    * - AndroidEmulator
    */
    "platform":"iOS",
    "deviceType":"Universal",
    "certificatePath":"/path/to/certificate.file",
    "certificateAlias":"iPhone Distribution: Rui Marinho",
    "sdkPath":"/path/to/android-sdk",
    "orientations": [
    "portrait"
    ]
    }

  7. #7

    Default

    I was able to get the build done by using "sencha generate build" and not "sencha generate build native". I had to manually do the "adb install -r <*.apk file>" along with making the screen size 7 inches.

    File size bigger.

  8. #8

    Default

    well for me the android build worked ok in the latest sdk and tools, online the native ios is broken.
    No workaround from the sencha team?

  9. #9

    Default

    I have the same issue here.
    Do you have any clue yet ?
    Is it going to be long until you cna find the fix to this or should be come back to de previous version of the SDK Tools ?
    Thank you !

  10. #10

    Default

    I was able to get the problem down to just the /rec folder not coping into the build.

    The solution appears to be performing a build using the "sencha app build production" with no other parms. This builds the production directory using just the .json file. Then use "sencha app build native" which builds the package and native directories.

    This brought the.apk file size from about 10 MB down to less than 2 MB.

    Issue now it the file still does not download and work on my Sprint Intercept Android 2.3.3 phone. Any suggestions?

Page 1 of 9 123 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •