What's the easiest way to play with Material Examples?

血红的双手。 提交于 2019-12-12 09:25:52

问题


I cloned the repro and opened the Material xcode worspace. What is the best way to play with the Examples? When I pick one of the examples under Programmatic, e.g. MaterialLayout I get runtime errors:

dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib
  Referenced from: /Users/robcecil/Library/Developer/Xcode/DerivedData/Material-gtachugnpsgijdekhozchyiudycc/Build/Products/Debug-iphonesimulator/Material.framework/Material
  Reason: image not found

In other cases, it has a hard time finding the Material framework...

Thanks


回答1:


To setup the example projects, you would need to compile the Material.framework, and then embed the framework in the project you want to run.

  1. Open the Material workspace in the Examples directory.

  2. Compile the Material.framework project by choosing the scheme in the Xcode navigation bar. The device needs to be on Generic Device, or an actual iOS device, not simulator.

  3. Click on the project you want to run in the examples directory.

  4. Open the 'General' page in the project inspector.

  5. Go to Embedded Binaries, and add the Material.framework binary.

  6. Choose the project scheme in the top navigation bar that you want to run.

  7. Press run.

Check the Installation wiki page.



来源:https://stackoverflow.com/questions/35179233/whats-the-easiest-way-to-play-with-material-examples

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!