我正在尝试使用外部框架编写一个新模块。我已按照此处的说明进行操作:http://docs.appcelerator.com/platform/latest/#!/guide/iOS_Module_Project-section-43288810_iOSModuleProject-AddaThird-PartyFramework关于如何添加外部框架工作。
模块编译。 Titanium 应用程序也可以编译。但是当在 iPhone 模拟器中应用程序崩溃时(甚至在使用模块之前)。
我在 Titnaium Studio 中遇到以下错误:
[ERROR] : An error occurred during build after 1m 19s 125ms
[ERROR] : Detected multiple crashes:
[ERROR] : /Users/ophir/Library/Logs/DiagnosticReports/SweetAlertDialogTest_2015-11-05-193036_Ophirs-Mac-mini.crash
[ERROR] : /Users/ophir/Library/Logs/DiagnosticReports/SweetAlertDialogTest_2015-11-05-193042_Ophirs-Mac-mini.crash
[ERROR] : /Users/ophir/Library/Logs/DiagnosticReports/SweetAlertDialogTest_2015-11-05-193122_Ophirs-Mac-mini.crash
[ERROR] : /Users/ophir/Library/Logs/DiagnosticReports/SweetAlertDialogTest_2015-11-05-193354_Ophirs-Mac-mini.crash
[ERROR] : /Users/ophir/Library/Logs/DiagnosticReports/SweetAlertDialogTest_2015-11-06-064617_Ophirs-Mac-mini.crash
[ERROR] : /Users/ophir/Library/Logs/DiagnosticReports/SweetAlertDialogTest_2015-11-06-072141_Ophirs-Mac-mini.crash
[ERROR] : /Users/ophir/Library/Logs/DiagnosticReports/SweetAlertDialogTest_2015-11-06-072205_Ophirs-Mac-mini.crash
[ERROR] : /Users/ophir/Library/Logs/DiagnosticReports/SweetAlertDialogTest_2015-11-06-072249_Ophirs-Mac-mini.crash
[ERROR] : /Users/ophir/Library/Logs/DiagnosticReports/SweetAlertDialogTest_2015-11-06-073843_Ophirs-Mac-mini.crash
[ERROR] : Note: these crashes may or may not be related to running your app.
TRACE | titanium exited with exit code 1
ERROR | Error: ti run exited with error code 1
at ChildProcess.<anonymous> (/Users/ophir/.appcelerator/install/5.0.4/package/node_modules/appc-cli-titanium/plugins/run.js:92:66)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)
TRACE | Sending exit signal to titanium process: 19220
我检查了崩溃日志,这是我得到的:
Dyld Error Message:
Library not loaded: @rpath/SweetAlertFramework.framework/SweetAlertFramework
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/6451C367-A7B7-437D-956F-57E86D8419FD/data/Containers/Bundle/Application/683ED437-B0E6-42F0-BC8E-26B2E95829CA/SweetAlertDialogTest.app/SweetAlertDialogTest
Reason: image not found
我已经检查了 module.xcconfig
中的路径,它是正确的。这里看起来奇怪的另一件事是崩溃日志中的路径 /Users/USER/Library/Developer/CoreSimulator/Devices/6451C367-A7B7-437D-956F-57E86D8419FD/data/Containers/Bundle/Application/683ED437-B0E6 -42F0-BC8E-26B2E95829CA/SweetAlertDialogTest.app/SweetAlertDialogTest
这在我的机器上不是有效路径。
为什么找不到模块?
最佳答案
我认为@HansKnoechel 的意思是 *.framework
,和iphone/platform
.这样,当模块实际被捆绑时,框架也将被包含在内。您可以通过检查 modules/iphone/<YourModule>/<YourModuleVersion>/platform
来验证框架是否在正确的位置。目录。
关于ios - 使用第 3 方框架编写 Appcelerator Titanium iOS 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33562440/