Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS Catalina: tns prepare/build ios --provision ... fails with Expected "SHA-1 hash: " or end of input but "S" found. #4934

Closed
Natalia-Hristova opened this issue Aug 8, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@Natalia-Hristova
Copy link

Natalia-Hristova commented Aug 8, 2019

Environment

  • CLI: next -> 6.1.0-2019-07-22-110314-13705
    macOS Catalina 10.15 Beta Xcode 11 and Xcode 10.3

Describe the bug
When try to build or prepare app with specified provision build fails:

Copying template files...
Platform ios successfully added. v6.0.1
Preparing project...
Hash: 12f9b472fb11b826f954
Version: webpack 4.27.1
Time: 1156ms
...
Webpack compilation complete.
Expected "SHA-1 hash: " or end of input but "S" found.
# tns build ios

### Description

Builds the project for iOS and produces an APP or IPA that you can manually deploy in the iOS Simulator or on a device.

IMPORTANT: Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your macOS system. 

### Commands

┌─────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Usage   │ Synopsis                                                                                                  │
│ General │ $ tns build ios [--for-device] [--release] [--copy-to <File Path>] [--provision [<UUID/name>]] [--env.*]] │
└─────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────┘

### Options

    * --release - If set, produces a release build. Otherwise, produces a debug build.
    * --for-device - If set, produces an application package that you can deploy on device. Otherwise, produces a build that you can run only in the native iOS Simulator.
    * --i-cloud-container-environment - If set, adds the passed iCloudContainerEnvironment when exporting an application package with the --for-device option.
    * --copy-to - Specifies the file path where the built .ipa will be copied. If it points to a non-existent directory path, it will be created. If the specified value is existing directory, the original file name will be used.
    * --team-id - If used without parameter, lists all team names and ids. If used with team name or id, it will switch to automatic signing mode and configure the .xcodeproj file of your app. In this case .xcconfig should not contain any provisioning/team id flags. This team id will be further used for codesigning the app. For Xcode 9.0+, xcodebuild will be allowed to update and modify automatically managed provisioning profiles.
    * --provision - If used without parameter, lists all eligible provisioning profiles. If used with UUID or name of your provisioning profile, it will switch to manual signing mode and configure the .xcodeproj file of your app. In this case xcconfig should not contain any provisioning/team id flags. This provisioning profile will be further used for codesigning the app.
    * --env.* - Specifies additional flags that the bundler may process. May be passed multiple times. Supported additional flags:
        * --env.aot - creates Ahead-Of-Time build (Angular only).
          * --env.snapshot- creates Snapshot (only for release builds on Mac OS & for Android).
          * --env.uglify - provides basic obfuscation and smaller app size.
          * --env.report - creates a Webpack report inside a report folder in the root folder.
          * --env.sourceMap - creates inline source maps (useful for debbuging bundled app).
          * --env.hiddenSourceMap - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
    * --force - If set, skips the application compatibility checks and forces npm i to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring tns migrate.

To Reproduce

  1. tns create TestApp --js/ts/ng/vue
  2. Try totns build/prepare ios --provision..

Expected behavior
App to be prepared/built successfully

Sample project

Additional context

@Natalia-Hristova Natalia-Hristova changed the title Xcode 11: tns prepare/build ios --provision ... fails with Webpack compilation complete. Expected "SHA-1 hash: " or end of input but "S" found. macOS Catalina: tns prepare/build ios --provision ... fails with Expected "SHA-1 hash: " or end of input but "S" found. Aug 8, 2019
@rosen-vladimirov rosen-vladimirov self-assigned this Aug 20, 2019
@rosen-vladimirov rosen-vladimirov added this to the 6.1.0 milestone Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants