Coder Social home page Coder Social logo

Comments (7)

liyangmsn avatar liyangmsn commented on July 17, 2024 4

@thon-ju
找到原因了 引用方法没问题
库的文件名要以lib为前缀
https://stackoverflow.com/questions/19189463/cocoapods-podspec-issue

from bluetooth_print.

thon-ju avatar thon-ju commented on July 17, 2024

@liyangmsn 可以如下操作
1、targets->build setting->other linker flags中删掉-IGSDK项及继承项
image
2、确保库引用了,targets->build phases->link binary with libraries中有GSDK.a
image

from bluetooth_print.

liyangmsn avatar liyangmsn commented on July 17, 2024

@thon-ju
应该还需要把podspec里的s.vendored_libraries = '**/*.a'去掉
这行代码会往other linker flags里添加-IGSDK

from bluetooth_print.

thon-ju avatar thon-ju commented on July 17, 2024

@liyangmsn
理论上podspec里的
s.vendored_libraries = '**/*.a'
作用是新工程引用的时候回自动添加GSDK.a,去掉了,新工程需要手动添加GSDK.a库,但是实际上没有起效果。你还有更好方式推荐吗?

from bluetooth_print.

liyangmsn avatar liyangmsn commented on July 17, 2024

@thon-ju 不好意思 我查了一遍文档还是没有解决
目前所知vendored_libraries是将库引入
但是我看项目里也已经引入了 所以我感觉问题不在这里
我想问下这个GSDK是干嘛用的 没有相关文档

from bluetooth_print.

thon-ju avatar thon-ju commented on July 17, 2024

@liyangmsn
这是gprinter的打印指令库,是不是可以吧这个库提交到pod的server,进行引用?我不是特别熟悉ios的机制,如果您比较清楚的话可以试试修改下

from bluetooth_print.

thon-ju avatar thon-ju commented on July 17, 2024

@liyangmsn 经过测试,的确可以。非常感谢,这个问题我也找了好久,终于可以了

from bluetooth_print.

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.