dyld: Symbol not found: ___NSDictionary0__ when using google ServiceGenerator binary with discovery docs in XCode 7 & iOS target 9.0

不想你离开。 提交于 2019-12-10 10:12:17

问题


I'm trying to generate client API code from Google backend using Google serviceGenerator with discovery document as input. Following is the exact command :

/Users/raja/Library/Developer/Xcode/DerivedData/ServiceGenerator-dycdiotwolfqnaelznaucewpppjr/Build/Products/Debug/ServiceGenerator ./userRecordApi-v1-rpc.discovery --outputDir ~/API

I however, see the following error

dyld: Symbol not found: ___NSDictionary0__
  Referenced from: /Users/raja/Library/Developer/Xcode/DerivedData/ServiceGenerator-dycdiotwolfqnaelznaucewpppjr/Build/Products/Debug/ServiceGenerator (which was built for Mac OS X 10.11)
  Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 in /Users/raja/Library/Developer/Xcode/DerivedData/ServiceGenerator-dycdiotwolfqnaelznaucewpppjr/Build/Products/Debug/ServiceGenerator
Trace/BPT trap: 5

Any help would greatly be appreciated.

Thanks, Raja.


回答1:


Making the CoreFoundation framework optional worked for me. If it is not listed in libraries list add it and then make it optional.




回答2:


My project was building fine on Xcode 6 but failed with this error for one of the components. Obviously this is a framework linking versioning issue and I was able to get my binary to run by setting the OS X Deployment target to 10.9 - the same as the other components in my project. I would review your project component base and deployment SDK settings.



来源:https://stackoverflow.com/questions/32815121/dyld-symbol-not-found-nsdictionary0-when-using-google-servicegenerator-bi

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