Skip to content

Cannot link for simulator after using JSONTools #4

@wewei

Description

@wewei

CocoaPods version:

0.35.0

XCode version:

6.1

Error:

ld: warning: ignoring file /Users/wewei/Library/Developer/Xcode/DerivedData/Mathematician-gurehmzhckidwfajxlzdouehxzhg/Build/Products/Debug-iphonesimulator/libPods-Mathematician-Mathematician.a, file was built for archive which is not the architecture being linked (i386): /Users/wewei/Library/Developer/Xcode/DerivedData/Mathematician-gurehmzhckidwfajxlzdouehxzhg/Build/Products/Debug-iphonesimulator/libPods-Mathematician-Mathematician.a
ld: warning: ignoring file /Users/wewei/Library/Developer/Xcode/DerivedData/Mathematician-gurehmzhckidwfajxlzdouehxzhg/Build/Products/Debug-iphonesimulator/libPods-Mathematician-AFNetworking.a, file was built for archive which is not the architecture being linked (i386): /Users/wewei/Library/Developer/Xcode/DerivedData/Mathematician-gurehmzhckidwfajxlzdouehxzhg/Build/Products/Debug-iphonesimulator/libPods-Mathematician-AFNetworking.a
Undefined symbols for architecture i386:
"OBJC_CLASS$_PhDMathematician", referenced from:
objc-class-ref in PhDViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Root cause:

JSONTools generates "ONLY_ACTIVE_ARCH=No" for all targets, but it's conflict with pods' default value, 'YES' for debug while 'NO' for release.

Suggestion:

Remove the the "ONLY_ACTIVE_ARCH"?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions