Pixate / pixate-freestyle-ios

Pixate Freestyle for iOS
Apache License 2.0
848 stars 134 forks source link

[SOLUTION] If you have problems with iOS 9 or you need Bitcode enabled #192

Open oscar-anton opened 8 years ago

oscar-anton commented 8 years ago

Hi folks,

Like other people, i had several problems with PixateFreestyle framework when i upgraded to Xcode to 7 and Mac OS X El capitan.

After some days researching, i decided to compile my own version of PixateFreestyle framework in order to avoid this problems.

You have my version here: https://www.dropbox.com/s/9cz035h67y9x7fd/PixateFreestyle.framework.zip?dl=0

If you add this framework to your project, when you execute Simulator or create an archive with bitcode enabled all will works like a charm.

If you want to build your own PixateFreestyle framework from source code, follow this steps:

Regards.

anton-matosov commented 8 years ago

It seems that main repo is no longer maintained, so I have created a fork where updated podspec to include source code instead of pre-compiled framework which allows to debug and use any custom build settings include bitcode and easy rebuilds with latest SDKs.

Please note that it was tested only with use_frameworks! in podfile

So another solution to the problem is to switch to the fork that includes all the latest fixes with:

pod 'PixateFreestyle', :git => "https://github.com/anton-matosov/pixate-freestyle-ios.git", :tag => '2.1.5'

to stay up-to-date with latest changes you can use:

pod 'PixateFreestyle', :git => "https://github.com/anton-matosov/pixate-freestyle-ios.git", :branch => 'master'
mmckinley8 commented 8 years ago

Can anyone confirm that Anton's solution works?

anton-matosov commented 8 years ago

In this commit I have code that runs both implementations side by side https://github.com/anton-matosov/pixate-freestyle-ios/commit/514db443b90ee9518a6a6390612443e1325ea18e So you can verify solution on devices/simulators that don't crash.

bishalg commented 8 years ago

@mmckinley8 : @anton-matosov 's forked repo workd for me in Simulator.

@anton-matosov : Why couldn't create issue in your fork ? Anyways I have few suggestion can you remove the dependency on CocoLumberjack and reduce the OS target dependency to 7.0 ?

anton-matosov commented 8 years ago

CocoaLumberjack is part of original library, but it is just compiled into the library. This is causing conflicts if you use It in your project as well.

To reduce iOS version you can simply fork my repo and modify podspec file

Daemon-Devarshi commented 8 years ago

@anton-matosov I tried adding below statement in my podfile:

pod 'PixateFreestyle', :git => "https://github.com/anton-matosov/pixate-freestyle-ios.git", :branch => 'master'

but on pod install I am getting below error messages:

[!] Unable to satisfy the following requirements:

- `PixateFreestyle (from `https://github.com/anton-matosov/pixate-freestyle-ios.git`, branch `master`)` required by `Podfile`
Specs satisfying the `PixateFreestyle (from `https://github.com/anton-matosov/pixate-freestyle-ios.git`, branch `master`)` dependency were found, but they required a higher minimum deployment target.

Any ideas?

anton-matosov commented 8 years ago

My fork requires 8.1 as I was planning to use new API, but ended up creating separate derived project instead. I will revert back to iOS 5 some time soon

anton-matosov commented 8 years ago

@bishalg @Daemon-Devarshi I have reverted my fork to iOS 5.1 please let me know if it works for you now. Pod version is 2.1.7

pod 'PixateFreestyle', :git => "https://github.com/anton-matosov/pixate-freestyle-ios.git", :tag => '2.1.7'
Daemon-Devarshi commented 8 years ago

I am very thankful for the fixes shared by you, thanks a ton :+1:

Any specific reason why the PixateFreeStyle framework was crashing on iOS9?

anton-matosov commented 8 years ago

It was crashing in iOS 9 x64 simulators only. It seems to be an issue with obj-c runtime implementation of respondsToSelector: for this platform for situation of the swizzled class pointer

lhammond commented 7 years ago

@oscar-anton @anton-matosov

I've just inherited a project that is going to require me to get things going on iOS10 ( maybe )

it's unclear to me how you guys were able to build the framework.
@oscar-anton - I read the post, but stopped when I saw that @anton-matosov had done some work on this

@anton-matosov - I pulled your fork, but it's unclear how to get things working. I tried dropping it into the Pods directory and executing the build_framework.sh but it's complaining.

any tips?

thanks, chris

anton-matosov commented 7 years ago

I have another derivative from freestyle called StylingKit. Installation instructions are here https://github.com/StylingKit/StylingKit#installation

Integration is a bit different, but simpler and covered here https://github.com/StylingKit/StylingKit#integrating-with-your-app

anton-matosov commented 7 years ago

I do not support my fork original of pixate