Building42 / Telegraph

Secure Web Server for iOS, tvOS and macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS Examplex always crash

wyxy2005 opened this issue · comments

commented

iOS Examples always crash: Terminated due to signal 9

I use safari download source code, run command cartfile bootstrap and open Telegraph.xcworkspace, select project "iOS Example" run at the iPhone device (version 11.4.1),(project default config don't worker in the devices, show not found framework, so I'm change Link Binary With Libraries: set Telegraph.framework status equal "Optional", run Simulators is ok. Very good result! But it's always show crash in the iPhone 6 plus device. "iOS Example" always show crash: Message from debugger: Terminated due to signal 9

I'm first test by Swift 5 version, the next test by Swift 4.2, but no difference.

It's demo bug?

1562668053189
1562667973661

Sorry for taking a while to get back to you. Dependency management for libraries can be a bit of a pain. I've made a few changes that should fix the annoying dylib errors.

Can you try the following for me?

  1. Make sure you have the latest Git and Carthage installed
    brew install git carthage

  2. Clone the repository
    git clone git@github.com:Building42/Telegraph.git

  3. Run Carthage to fetch the dependencies (this no longer builds, so it is a lot quicker)
    carthage bootstrap --use-submodules --no-build

  4. Enter the folder and then open the Workspace
    open Telegraph.xcworkspace

  5. Build the project and you should be able to run the examples (after selecting the right Scheme)

The CocoaAsyncSocket project might give you a warning, but you can ignore that.

Please let me know if this fixes the problem for you.

commented

Sorry for taking a while to get back to you. Dependency management for libraries can be a bit of a pain. I've made a few changes that should fix the annoying dylib errors.

Can you try the following for me?

  1. Make sure you have the latest Git and Carthage installed
    brew install git carthage
  2. Clone the repository
    git clone git@github.com:Building42/Telegraph.git
  3. Run Carthage to fetch the dependencies (this no longer builds, so it is a lot quicker)
    carthage bootstrap --use-submodules --no-build
  4. Enter the folder and then open the Workspace
    open Telegraph.xcworkspace
  5. Build the project and you should be able to run the examples (after selecting the right Scheme)

The CocoaAsyncSocket project might give you a warning, but you can ignore that.

Please let me know if this fixes the problem for you.

Thanks! You can fixes this problem! Demo can running!

@wyxy2005 Great! Glad it is working!