readium / readium-sdk

A C++ ePub renderer SDK
BSD 3-Clause "New" or "Revised" License
385 stars 164 forks source link

Xcode8 build error. (Undefined symbols for architecture arm64) #264

Closed kirou closed 7 years ago

kirou commented 7 years ago

An error occurs when building a real machine with Xcode 8.1 I'm using 0.16.0 and 0.23.0.

2016-11-11 15 12 43

On Xcode 7.1 the build of the real machine was successful. I was using 0.16.0.

It failed with Xcode8. However, building with SDKLauncher-iOS of sample will succeed. (0.16.0 and 0.23.0 was successed for Xcode8.) https://github.com/readium/SDKLauncher-iOS

Therefore, I think that there is something I can not set for my project. Even though I compare SDKLauncher-iOS with my project, I did not understand where I made a mistake.

Is there any way to solve it?

danielweck commented 7 years ago

Just make sure the preprocessor / compiler directive ENABLE_SYS_CACHE_FLUSH is false (or not defined), and/or comment out the code, and/or exclude the files from the build. See: https://github.com/readium/readium-sdk/issues/248#issue-159512407

Duplicate: https://github.com/readium/readium-sdk/issues/261

Related: https://github.com/readium/readium-sdk/issues/257