romaonthego / REActivityViewController

[DEPRECATED] Open source alternative to UIActivityViewController, highly customizable and compatible with iOS 5.0.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CocoaPods Install Does Not Work! :(

peoplecallmefrancois opened this issue · comments

I have been trying to install this library for the past day. But I keep getting the following errors. Does anyone know how to solve this?

Undefined symbols for architecture i386: "_ACFacebookAppIdKey", referenced from: -[FBSystemAccountStoreAdapter requestAccessToFacebookAccountStore:defaultAudience:isReauthorize:appID:session:handler:] in libPods.a(FBSystemAccountStoreAdapter.o) "_ACFacebookAudienceEveryone", referenced from: -[FBSystemAccountStoreAdapter requestAccessToFacebookAccountStore:defaultAudience:isReauthorize:appID:session:handler:] in libPods.a(FBSystemAccountStoreAdapter.o) "_ACFacebookAudienceFriends", referenced from: -[FBSystemAccountStoreAdapter requestAccessToFacebookAccountStore:defaultAudience:isReauthorize:appID:session:handler:] in libPods.a(FBSystemAccountStoreAdapter.o) "_ACFacebookAudienceKey", referenced from: -[FBSystemAccountStoreAdapter requestAccessToFacebookAccountStore:defaultAudience:isReauthorize:appID:session:handler:] in libPods.a(FBSystemAccountStoreAdapter.o) "_ACFacebookAudienceOnlyMe", referenced from: -[FBSystemAccountStoreAdapter requestAccessToFacebookAccountStore:defaultAudience:isReauthorize:appID:session:handler:] in libPods.a(FBSystemAccountStoreAdapter.o) "_ACFacebookPermissionsKey", referenced from: -[FBSystemAccountStoreAdapter requestAccessToFacebookAccountStore:defaultAudience:isReauthorize:appID:session:handler:] in libPods.a(FBSystemAccountStoreAdapter.o) "_OBJC_CLASS_$_ACAccountStore", referenced from: objc-class-ref in libPods.a(FBSystemAccountStoreAdapter.o) "_OBJC_CLASS_$_ASIdentifierManager", referenced from: objc-class-ref in libPods.a(FBUtility.o) "_OBJC_CLASS_$_SLComposeViewController", referenced from: objc-class-ref in libPods.a(DEFacebookComposeViewController.o) objc-class-ref in libPods.a(FBDialogs.o) "_OBJC_CLASS_$_TWTweetComposeViewController", referenced from: objc-class-ref in libPods.a(RETwitterActivity.o) "_SLServiceTypeFacebook", referenced from: -[DEFacebookComposeViewController initForceUseCustomController:urlSchemeSuffix:] in libPods.a(DEFacebookComposeViewController.o) +[FBDialogs composeViewControllerWithSession:handler:] in libPods.a(FBDialogs.o) -[DEFacebookComposeViewController initForceUseCustomController:urlSchemeSuffix:] in libPods.a(DEFacebookComposeViewController.o) +[FBDialogs composeViewControllerWithSession:handler:] in libPods.a(FBDialogs.o) "_SecItemAdd", referenced from: +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) "_SecItemCopyMatching", referenced from: +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) "_SecItemDelete", referenced from: +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) "_SecItemUpdate", referenced from: +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) "_SecRandomCopyBytes", referenced from: +[FBCrypto randomBytes:] in libPods.a(FBCrypto.o) -[FBCrypto encrypt:additionalDataToSign:] in libPods.a(FBCrypto.o) "_kSecAttrAccount", referenced from: +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) "_kSecAttrLabel", referenced from: +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) "_kSecAttrService", referenced from: +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) "_kSecClass", referenced from: +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) "_kSecClassGenericPassword", referenced from: +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) "_kSecRandomDefault", referenced from: +[FBCrypto randomBytes:] in libPods.a(FBCrypto.o) -[FBCrypto encrypt:additionalDataToSign:] in libPods.a(FBCrypto.o) "_kSecReturnAttributes", referenced from: +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) "_kSecReturnData", referenced from: +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) "_kSecValueData", referenced from: +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in libPods.a(SFHFKeychainUtils-EB16493A7EE3E2B1.o) "_sqlite3_bind_double", referenced from: -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _writeEntryInDatabase:] in libPods.a(FBCacheIndex.o) "_sqlite3_bind_int", referenced from: -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _writeEntryInDatabase:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _trimDatabase] in libPods.a(FBCacheIndex.o) "_sqlite3_bind_text", referenced from: -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _writeEntryInDatabase:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _readEntryFromDatabase:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _readEntriesFromDatabase:excludingFragment:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _removeEntryFromDatabaseForKey:] in libPods.a(FBCacheIndex.o) "_sqlite3_close", referenced from: ___23-[FBCacheIndex dealloc]_block_invoke in libPods.a(FBCacheIndex.o) "_sqlite3_column_double", referenced from: -[FBCacheIndex _createCacheEntityInfo:] in libPods.a(FBCacheIndex.o) "_sqlite3_column_int", referenced from: -[FBCacheIndex _createCacheEntityInfo:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _fetchCurrentDiskUsage] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _trimDatabase] in libPods.a(FBCacheIndex.o) "_sqlite3_column_text", referenced from: -[FBCacheIndex _createCacheEntityInfo:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _trimDatabase] in libPods.a(FBCacheIndex.o) "_sqlite3_errmsg", referenced from: ___23-[FBCacheIndex dealloc]_block_invoke in libPods.a(FBCacheIndex.o) _releaseStatement in libPods.a(FBCacheIndex.o) -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libPods.a(FBCacheIndex.o) _initializeStatement in libPods.a(FBCacheIndex.o) -[FBCacheIndex _writeEntryInDatabase:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _readEntryFromDatabase:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _readEntriesFromDatabase:excludingFragment:] in libPods.a(FBCacheIndex.o) ... "_sqlite3_exec", referenced from: ___36-[FBCacheIndex initWithCacheFolder:]_block_invoke in libPods.a(FBCacheIndex.o) "_sqlite3_finalize", referenced from: _releaseStatement in libPods.a(FBCacheIndex.o) "_sqlite3_open_v2", referenced from: ___36-[FBCacheIndex initWithCacheFolder:]_block_invoke in libPods.a(FBCacheIndex.o) "_sqlite3_prepare_v2", referenced from: _initializeStatement in libPods.a(FBCacheIndex.o) "_sqlite3_reset", referenced from: _initializeStatement in libPods.a(FBCacheIndex.o) "_sqlite3_step", referenced from: -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _writeEntryInDatabase:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _createCacheEntityInfo:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _fetchCurrentDiskUsage] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _removeEntryFromDatabaseForKey:] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _dropTrimmingTable] in libPods.a(FBCacheIndex.o) -[FBCacheIndex _trimDatabase] in libPods.a(FBCacheIndex.o) ... ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Ok, I kind of solved this by adding all the Frameworks from the Pods project to my regular Xcode Project. But doesn't that break the point of Cocoapods? Do you know why this happens? Thanks.

What's your CocoaPods version?

Also, make sure that you compile .xcworkspace and not .xcodeproj.

Not sure, however, I get this message "CocoaPods 0.20.2 is available", so I assume it is CocoaPods 0.20.1, I am going to update my Cocoapods, thanks for the help by the way, and yeah I am compiling the workspace.

I have the same problem, this is my solution:

Open *.xcodeproj,show the contents
and open the project.pbxproj, search OTHER_LDFLAGS, delete all of the following key-value

OTHER_LDFLAGS