2013-09-30 78 views
1

我試圖將我的項目中的解析框架集成在iOS 7中。我在iOS 6的另一個項目中完成,並沒有任何問題。使用新的iOS,該項目無法編譯。看來問題是Parsse框架不是爲armv7s架構而構建的。我不知道如何解決這個問題。問題與解析框架和iOS 7

我附上的Xcode 5所示的問題:

Undefined symbols for architecture armv7s: "_sqlite3_reset", referenced from: 

    _initializeStatement in Parse(PF_FBCacheIndex.o) 
"_sqlite3_column_int", referenced from: 

    -[PF_FBCacheIndex _createCacheEntityInfo:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _fetchCurrentDiskUsage] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _trimDatabase] in Parse(PF_FBCacheIndex.o) 
"_sqlite3_bind_int", referenced from: 

    -[PF_FBCacheIndex _updateEntryInDatabaseForKey:entry:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _writeEntryInDatabase:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _trimDatabase] in Parse(PF_FBCacheIndex.o) 
"_sqlite3_column_text", referenced from: 

    -[PF_FBCacheIndex _createCacheEntityInfo:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _trimDatabase] in Parse(PF_FBCacheIndex.o) 
"_sqlite3_bind_text", referenced from: 

    -[PF_FBCacheIndex _updateEntryInDatabaseForKey:entry:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _writeEntryInDatabase:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _readEntryFromDatabase:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _readEntriesFromDatabase:excludingFragment:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _removeEntryFromDatabaseForKey:] in Parse(PF_FBCacheIndex.o) 
"_sqlite3_column_double", referenced from: 

    -[PF_FBCacheIndex _createCacheEntityInfo:] in Parse(PF_FBCacheIndex.o) 
"_sqlite3_bind_double", referenced from: 

    -[PF_FBCacheIndex _updateEntryInDatabaseForKey:entry:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _writeEntryInDatabase:] in Parse(PF_FBCacheIndex.o) 
"_sqlite3_step", referenced from: 

    -[PF_FBCacheIndex _updateEntryInDatabaseForKey:entry:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _writeEntryInDatabase:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _createCacheEntityInfo:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _fetchCurrentDiskUsage] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _removeEntryFromDatabaseForKey:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _dropTrimmingTable] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _trimDatabase] in Parse(PF_FBCacheIndex.o) 
    ... 
"_sqlite3_prepare_v2", referenced from: 

    _initializeStatement in Parse(PF_FBCacheIndex.o) 
"_sqlite3_open_v2", referenced from: 

    ___39-[PF_FBCacheIndex initWithCacheFolder:]_block_invoke in Parse(PF_FBCacheIndex.o) 
"_sqlite3_errmsg", referenced from: 

    _releaseStatement in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _updateEntryInDatabaseForKey:entry:] in Parse(PF_FBCacheIndex.o) 
    _initializeStatement in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _writeEntryInDatabase:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _readEntryFromDatabase:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _readEntriesFromDatabase:excludingFragment:] in Parse(PF_FBCacheIndex.o) 
    -[PF_FBCacheIndex _fetchCurrentDiskUsage] in Parse(PF_FBCacheIndex.o) 
    ... 
"_sqlite3_finalize", referenced from: 

    _releaseStatement in Parse(PF_FBCacheIndex.o) 
"_sqlite3_close", referenced from: 

    ___26-[PF_FBCacheIndex dealloc]_block_invoke in Parse(PF_FBCacheIndex.o) 
"_sqlite3_exec", referenced from: 

    ___39-[PF_FBCacheIndex initWithCacheFolder:]_block_invoke in Parse(PF_FBCacheIndex.o) 
ld: symbol(s) not found for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation) 

回答

2

我已經解決了這個問題:什麼工作對我來說是包括庫:

libsqlite.3dylib 
libz.dylib 

他們可以發現在Parse PushNotificationTutorial項目中。你可以從Parse的網頁下載它。