问题
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