Giter Club home page Giter Club logo

Comments (18)

gms8994 avatar gms8994 commented on May 13, 2024 3

I just got this after

brew tap majd/repo
brew install ipatool

==> Downloading https://github.com/majd/ipatool/releases/download/v1.0.8/ipatool-v1.0.8.zip
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/369755856/5776dd8f-9e35-4ea6-a7d8-516dfc6080b3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-A
######################################################################## 100.0%
==> Installing Cask ipatool
==> Linking Binary 'ipatool' to '/usr/local/bin/ipatool'
๐Ÿบ  ipatool was successfully installed!

ipatool --version                                                                                                       masterโ†‘7|โœš47โ€ฆ 
dyld: Library not loaded: @rpath/libswift_Concurrency.dylib
  Referenced from: /usr/local/bin/ipatool
  Reason: image not found
[1]    30068 abort      ipatool --version

On a 2019 Intel Core i7 MBP running Big Sur.

from ipatool.

majd avatar majd commented on May 13, 2024 2

@suyashbansal That's unfortunate. Do you by any chance have the latest Swift runtime installed on your Mac? I believe it ships with Xcode. You can verify that by running

ls /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx

If you see libswift_Concurrency.dylib, please try running

export DYLD_LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx

before starting the ipatool binary above and let me know the outcome.

from ipatool.

suyashbansal avatar suyashbansal commented on May 13, 2024 1

@majd still getting the same error

suyash@Suyashs-MacBook-Air Downloads % chmod +x ./ipatool
suyash@Suyashs-MacBook-Air Downloads % ./ipatool         
dyld: lazy symbol binding failed: can't resolve symbol _swift_task_create in /Users/suyash/Downloads/./ipatool because dependent dylib @rpath/libswift_Concurrency.dylib could not be loaded
dyld: can't resolve symbol _swift_task_create in /Users/suyash/Downloads/./ipatool because dependent dylib @rpath/libswift_Concurrency.dylib could not be loaded
zsh: abort      ./ipatool

from ipatool.

majd avatar majd commented on May 13, 2024 1

@palaniraja

Is there a way to bundle this part of app binary? i thought builds from xcode13.2 should have included this concurrency changes similar to swift runtime, packaged along with binary(to support old versions). Though i had xcode13 installed and running BigSur 11.4 I had the same error.

Initially, I had also assumed that Xcode 13.2 would statically link the Concurrency library with the compiled binary - it sadly does only seem to weakly link it. Perhaps this is currently not supported with Swift packages.

Also if possible support installing old version via homebrew, i wanted to go back to old version which did not have this concurrency change but brew install [email protected] didn't work. Wondering if this requires additional steps from your end.

I believe Homebrew does not support installing older versions of formulas. To grab older releases, you can either retrieve it from the releases history in this repository or grab the older formula from the commits history on majd/homebrew-repo and pass it to Homebrew.

from ipatool.

lnguyen234 avatar lnguyen234 commented on May 13, 2024

Try install this: https://download.swift.org/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2021-12-06-a/swift-DEVELOPMENT-SNAPSHOT-2021-12-06-a-osx.pkg
Then set export DYLD_LIBRARY_PATH=/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2021-12-06-a.xctoolchain/usr/lib/swift/macosx

from ipatool.

majd avatar majd commented on May 13, 2024

What version of macOS are you running? Did you compile ipatool yourself or did you install the Homebrew distribution?

from ipatool.

EduardLev avatar EduardLev commented on May 13, 2024

I got the same error as @gms8994 on a new brew install running Big Sur 11.6.4

from ipatool.

palaniraja avatar palaniraja commented on May 13, 2024

same error on Big Sur 11.4 / intel i7

from ipatool.

gms8994 avatar gms8994 commented on May 13, 2024

On a 2018 Intel Core i7 running Monterey, the install runs successfully.

from ipatool.

majd avatar majd commented on May 13, 2024

Can you try this binary and see if it fixes the issue?

ipatool.zip

from ipatool.

suyashbansal avatar suyashbansal commented on May 13, 2024

Still not working on M1 Air Big Sur 11.6.3

suyash@Suyashs-MacBook-Air Downloads % ipatool
dyld: Library not loaded: @rpath/libswift_Concurrency.dylib
  Referenced from: /opt/homebrew/bin/ipatool
  Reason: image not found
zsh: abort      ipatool

from ipatool.

majd avatar majd commented on May 13, 2024

Still not working on M1 Air Big Sur 11.6.3

suyash@Suyashs-MacBook-Air Downloads % ipatool
dyld: Library not loaded: @rpath/libswift_Concurrency.dylib
  Referenced from: /opt/homebrew/bin/ipatool
  Reason: image not found
zsh: abort      ipatool

@suyashbansal I believe you are using the wrong binary given the output says that the library is referenced from /opt/homebrew/bin/ipatool. Maybe you meant to execute the new binary with ./ipatool instead of ipatool?

from ipatool.

suyashbansal avatar suyashbansal commented on May 13, 2024

Maybe you meant to execute the new binary with ./ipatool instead of ipatool?

You are right! I did run the new binary and still getting the similar error:

suyash@Suyashs-MacBook-Air Downloads % ./ipatool   
dyld: lazy symbol binding failed: can't resolve symbol _swift_task_create in /Users/suyash/Downloads/./ipatool because dependent dylib @rpath/libswift_Concurrency.dylib could not be loaded
dyld: can't resolve symbol _swift_task_create in /Users/suyash/Downloads/./ipatool because dependent dylib @rpath/libswift_Concurrency.dylib could not be loaded
zsh: abort      ./ipatool
suyash@Suyashs-MacBook-Air Downloads % 

Update - getting the same error on MacBook Pro 16 (2019, Core i9)

from ipatool.

majd avatar majd commented on May 13, 2024

@suyashbansal Could you try this one? It's built using Xcode 13.3 and the latest Swift toolchain, which I think resolves this issue.

ipatool.zip

from ipatool.

Jinxiansen avatar Jinxiansen commented on May 13, 2024

Thanks @majd
The method is useful to me. ๐Ÿ‘

from ipatool.

suyashbansal avatar suyashbansal commented on May 13, 2024

@majd I don't have the full Xcode installed but I added the latest stable Swift runtime as mentioned by @lnguyen234 above.

suyash@Suyashs-MacBook-Air ~ % export DYLD_LIBRARY_PATH=/Library/Developer/Toolchains/swift-5.5.3-release.xctoolchain/usr/lib/swift/macosx
suyash@Suyashs-MacBook-Air ~ % cd Downloads 
suyash@Suyashs-MacBook-Air Downloads % ./ipatool 
OVERVIEW: A cli tool for interacting with Apple's ipa files.

USAGE: ipatool <subcommand>

OPTIONS:
  --version               Show the version.
  -h, --help              Show help information.

SUBCOMMANDS:
  download                Download (encrypted) iOS app packages from the App
                          Store.
  search                  Search for iOS apps available on the App Store.

  See 'ipatool help <subcommand>' for detailed help.
suyash@Suyashs-MacBook-Air Downloads % 

It works now!!

from ipatool.

majd avatar majd commented on May 13, 2024

Thanks for confirming. It seems like you need to install the Swift 5.5 toolchain or Xcode 13 (which contains the Swift 5.5 toolchain). Since macOS Catalina does not support Xcode 13, you need to install the official Swift toolchain package (thanks @lnguyen234). I've added this information to the wiki.

from ipatool.

palaniraja avatar palaniraja commented on May 13, 2024

Is there a way to bundle this part of app binary? i thought builds from xcode13.2 should have included this concurrency changes similar to swift runtime, packaged along with binary(to support old versions). Though i had xcode13 installed and running BigSur 11.4 I had the same error.

Also if possible support installing old version via homebrew, i wanted to go back to old version which did not have this concurrency change but brew install [email protected] didn't work. Wondering if this requires additional steps from your end.

Thank you

from ipatool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.