我有一个存储在桌面上的项目。但是,我的外置硬盘驱动器(parse.framework)上有一个框架。每当拔掉硬盘驱动器,或者我退出Xcode,然后我重新加载Xcode,它就会告诉我框架丢失了。我解决了这个问题,因为我删除了对框架的引用并重新添加它,但我每次都必须这样做。有没有办法让我做一次这样的事情呢?此外,我想将我的应用程序导出为企业导出,并且在此问题中回答了执行此操作的方法:Xcode 6 enterprise distribution not working 在答案的评论中,有答案的链接是http://www.thecave.com/2014/09/16/using-xcodebuild-to-export-a-ipa-from-an-archive/ 不幸的是,每当我尝试使用终端构建我的应用程序时,我都会收到一个错误,即框架未找到。我该如何解决这个问题,以便我可以构建和运行而不必担心Parse框架在我的外置硬盘上?
UPDATE ****
正如您在下面的评论部分所看到的,@ YuviGr告诉我将Parse.framework导入到我的项目中。我试过了,但这里有错误:
ld: warning: directory not found for option '-F/Volumes/Seagate'
ld: warning: directory not found for option '-FBackup'
ld: warning: directory not found for option '-FPlus'
ld: warning: directory not found for option '-FDrive/My'
ld: warning: directory not found for option '-FDocuments/Downloads'
Undefined symbols for architecture i386:
"_sqlite3_bind_blob", referenced from:
-[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
"_sqlite3_bind_double", referenced from:
-[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
"_sqlite3_bind_int64", referenced from:
-[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
"_sqlite3_bind_null", referenced from:
-[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
"_sqlite3_bind_parameter_count", referenced from:
___59-[PFSQLiteDatabase executeQueryAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
___57-[PFSQLiteDatabase executeSQLAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
"_sqlite3_bind_text", referenced from:
___34-[PFDateFormatter dateFromString:]_block_invoke in Parse(PFDateFormatter.o)
-[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
"_sqlite3_clear_bindings", referenced from:
___34-[PFDateFormatter dateFromString:]_block_invoke in Parse(PFDateFormatter.o)
"_sqlite3_close", referenced from:
-[PFDateFormatter dealloc] in Parse(PFDateFormatter.o)
___30-[PFSQLiteDatabase closeAsync]_block_invoke in Parse(PFSQLiteDatabase.o)
"_sqlite3_column_blob", referenced from:
-[PFSQLiteDatabaseResult dataForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_bytes", referenced from:
-[PFSQLiteDatabaseResult dataForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_count", referenced from:
-[PFSQLiteDatabaseResult columnNameToIndexMap] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_double", referenced from:
___34-[PFDateFormatter dateFromString:]_block_invoke in Parse(PFDateFormatter.o)
-[PFSQLiteDatabaseResult doubleForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_int", referenced from:
-[PFSQLiteDatabaseResult intForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_int64", referenced from:
___34-[PFDateFormatter dateFromString:]_block_invoke in Parse(PFDateFormatter.o)
-[PFSQLiteDatabaseResult longForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_name", referenced from:
-[PFSQLiteDatabaseResult columnNameToIndexMap] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_text", referenced from:
-[PFSQLiteDatabaseResult stringForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_type", referenced from:
-[PFSQLiteDatabaseResult objectForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
-[PFSQLiteDatabaseResult columnIndexIsNull:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_errmsg", referenced from:
-[PFSQLiteDatabase _errorWithErrorCode:] in Parse(PFSQLiteDatabase.o)
"_sqlite3_finalize", referenced from:
-[PFDateFormatter dealloc] in Parse(PFDateFormatter.o)
___59-[PFSQLiteDatabase executeQueryAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
___57-[PFSQLiteDatabase executeSQLAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
-[PFSQLiteStatement close] in Parse(PFSQLiteStatement.o)
"_sqlite3_open", referenced from:
-[PFDateFormatter init] in Parse(PFDateFormatter.o)
___29-[PFSQLiteDatabase openAsync]_block_invoke in Parse(PFSQLiteDatabase.o)
"_sqlite3_prepare_v2", referenced from:
-[PFDateFormatter init] in Parse(PFDateFormatter.o)
___59-[PFSQLiteDatabase executeQueryAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
___57-[PFSQLiteDatabase executeSQLAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
"_sqlite3_reset", referenced from:
___34-[PFDateFormatter dateFromString:]_block_invoke in Parse(PFDateFormatter.o)
-[PFSQLiteStatement reset] in Parse(PFSQLiteStatement.o)
"_sqlite3_step", referenced from:
___34-[PFDateFormatter dateFromString:]_block_invoke in Parse(PFDateFormatter.o)
___57-[PFSQLiteDatabase executeSQLAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
-[PFSQLiteDatabaseResult next] in Parse(PFSQLiteDatabaseResult.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我会张贴图片,但显然我需要足够的代表才能做到这一点。
答案 0 :(得分:1)
实际上,在YuviGr的帮助下,我想出了如何解决这个问题。我必须将parse.framework导入到项目文件夹中,我需要在项目的Parse QuickStart Guide中列出所有框架。