Home

Awesome

cocoapods-amimono-example

<p align="center"> <img src="https://raw.githubusercontent.com/Ruenzuo/res/master/amimono-example.gif" alt="amimono-example"/> </p>

This is:

A project like this has successfully passed iTunes Connect validation.

About this plugin

You can learn more from cocoapods-amimono.

Project setup

Install the gem:

gem install cocoapods-amimono

Add the following to your Podfile:

plugin 'cocoapods-amimono'

Add the following to your post_install hook:

post_install do |installer|
  require 'cocoapods-amimono/patcher'
  Amimono::Patcher.patch!(installer)
  ...

Troubleshooting

If you get the following error:

ld: library not found for -lswiftCoreLocation for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It is most likely that you're trying to use a Pod written in Swift without having Swift in your application target yet. Just add a dummy File.swift (like here) to fix this error.

dyld API usage

You can find the dyld API usage logs in the following gists:

dyld API usage with plugin
dyld API usage without plugin

Only in the later logs, you'll find calls like:

dlopen(/Users/ruenzuo/Library/Developer/CoreSimulator/Devices/93964D2A-914D-45F9-91F8-15D0C59FAAD5/data/Containers/Bundle/Application/48A9E07B-7E9A-4109-9000-3CBBCCDF21E4/Example.app/Frameworks/ImagePicker.framework/ImagePicker, 0x00000010)
  dlopen(/Users/ruenzuo/Library/Developer/CoreSimulator/Devices/93964D2A-914D-45F9-91F8-15D0C59FAAD5/data/Containers/Bundle/Application/48A9E07B-7E9A-4109-9000-3CBBCCDF21E4/Example.app/Frameworks/ImagePicker.framework/ImagePicker) ==> 0x107e20798
...
dlopen(/Users/ruenzuo/Library/Developer/CoreSimulator/Devices/93964D2A-914D-45F9-91F8-15D0C59FAAD5/data/Containers/Bundle/Application/48A9E07B-7E9A-4109-9000-3CBBCCDF21E4/Example.app/Frameworks/AFNetworking.framework/AFNetworking, 0x00000010)
  dlopen(/Users/ruenzuo/Library/Developer/CoreSimulator/Devices/93964D2A-914D-45F9-91F8-15D0C59FAAD5/data/Containers/Bundle/Application/48A9E07B-7E9A-4109-9000-3CBBCCDF21E4/Example.app/Frameworks/AFNetworking.framework/AFNetworking) ==> 0x107e20520