Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
284 views
in Technique[技术] by (71.8m points)

xcode - How to choose embedded library over installed library?

My application embeds several binary libraries (.dylib), which are located in the Contents/Frameworks folder. However, when I execute the application tries to load already installed library versions over my embedded version.

How can I tell my application to use the embedded version? I am sure it must be simple but I wasn't able to find the answer. Thanks!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Go to your project and click build phase section and extend Embed Frameworks section after change the Copy only when installing as ss below

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...