GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Global variables not defined in CLI 8.8 · Issue #5813 · NativeScript/nativescript-cli

Global variables not defined in CLI 8.8 #5813

New issue
Copy link
New issue
Copy link
Open
Open
Global variables not defined in CLI 8.8#5813
Copy link
Labels
question

Description

@asharghi
asharghi
opened on Aug 28, 2024
Issue body actions

Issue Description

After bumping packages, I found that some packages/plugins only work when I uninstall ns cli globally and install "nativescript": "8.7.2" (downgrade from cli 8.8).

Reproduction

https://github.com/asharghi/print-star-demo

  1. Clone and run with 'ns run iOS' with CLI 8.8
  2. Tap on "Test" button and see "Error" in the console log. ReferenceError: MTPrinterStar is not defined
  3. Uninstall CLI 8.8 and install CLI 8.7.2
  4. Run 'ns clean && ns run ios'
  5. Tap on "Test" button again and see "Success" in the console log

Relevant log output (if applicable)

No response

Environment

OS: macOS 14.6.1
CPU: (10) arm64 Apple M1 Max
Shell: /bin/zsh
node: 18.18.1
npm: 9.8.1
nativescript: Not Found

# android
java: 17.0.11
ndk: Not Found
apis: Not Found
build_tools: Not Found
system_images: Not Found

# ios
xcode: 15.3/15E204a
cocoapods: 1.15.2
python: 2.7.18
python3: 3.12.4
ruby: 2.7.8
platforms: 
  - DriverKit 23.4
  - iOS 17.4
  - macOS 14.4
  - tvOS 17.4
  - visionOS 1.1
  - watchOS 10.4

Dependencies

"dependencies": {
  "@nativescript-community/perms": "^2.3.3",
  "@nativescript/core": "~8.8.0",
  "@nativescript/theme": "^3.1.0",
  "nativescript": "8.7.2",
  "nativescript-permissions": "^1.3.12",
  "nativescript-print-star": "file:local_modules/nativescript-print-star-latest.tgz",
  "nativescript-vue": "~2.9.3"
},
"devDependencies": {
  "@nativescript/ios": "8.8.1",
  "@nativescript/types": "~8.8.0",
  "@nativescript/webpack": "~5.0.0",
  "@types/node": "~17.0.21",
  "nativescript-vue-template-compiler": "~2.9.3",
  "typescript": "~5.4.0",
  "vue": "~2.6.12"
}

Please accept these terms

  • I have searched the existing issues as well as StackOverflow and this has not been posted before
  • This is a bug report
  • I agree to follow this project's Code of Conduct

Activity

  1. asharghi
    added
    bug-pending-triageReported bug, pending triage to confirm.Reported bug, pending triage to confirm.
    on Aug 28, 2024
  2. NathanWalker
    added
    question
    and removed
    bug-pending-triageReported bug, pending triage to confirm.Reported bug, pending triage to confirm.
    on Sep 4, 2024
  3. NathanWalker commented on Sep 4, 2024

    @NathanWalker
    NathanWalker
    on Sep 4, 2024
    Contributor
    More actions

    We have confirmed that the issue also occurs on cli 8.7.2 as well - The issue appears to stem from fact that the print star plugin distributes a .framework, not a .xcframework and thus does not contain proper arch slices (like arm64 support)

    Here's the same output we see on CLI 8.8.2 latest and 8.7.2:

    ~/Desktop/print-star-demo/platforms/ios
    ld: building for 'iOS-simulator', but linking in dylib (/Users/username/Desktop/print-star-demo/node_modules/nativescript-print-star/platforms/ios/print_star.framework/print_star) built for 'iOS'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using codesigning identity override: 
    note: Run script build phase 'NativeScript PreLink' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'printstardemo' from project 'printstardemo')
    note: Run script build phase 'NativeScript PostBuild' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'printstardemo' from project 'printstardemo')
    note: Run script build phase 'NativeScript PreBuild' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'printstardemo' from project 'printstardemo')
    ** BUILD FAILED **
    
    Unable to apply changes on device: ADA51206-CB13-4EB1-B2F2-7A1DC887A5F3. Error is: Command xcodebuild failed with exit code 65.
    ^C
    print-star-demo % 
    print-star-demo % ns -v
    8.7.2
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.