DCloud_App_Array
DCloud_App_Array
  • 发布:2016-10-10 18:31
  • 更新:2019-04-12 16:44
  • 阅读:18631

iOS创建最精简离线打包工程

分类:5+ SDK

ios创建最精简离线打包工程
注意:如果离线打包的是uni-app项目 请点击进入查看如何配置

1 打开Xcode,创建新工程,选择“Single View Application”

2 添加创建工程的名称(注意:最好不要填中文或特殊字符)

3 复制HBuilder-Hello工程的delegate和Controller文件覆盖新创建工程的相应文件

4 拷贝以下文件到新创建工程目录下

iOS-SDK/SDK/Bundles/PandoraApi.bundle
iOS-SDK/SDK/control.xml
iOS-SDK/SDK/Libs/libcoreSupport.a
iOS-SDK/SDK/Libs/liblibPDRCore.a
iOS-SDK/SDK/Libs/liblibUI.a

5 添加刚才拷贝的文件到工程内

6 拷贝IOS-SDK/SDK/inc目录到新创建工程目录下,并添加到工程内

7 点击Project->TARGETS->Build Settings搜索“Other Linker Flags”,双击搜索到的项双击,在弹出框内添加想“-ObjC”

8 点击Projcet->General->Linked Frameworks and Libraries 添加系统库到工程

系统库
JavaScriptCore.framework
WebKit.framework
CoreTelephony.framework
MobileCoreServices.framework
SystemConfiguration.framework
MediaPlayer.framework
AudioToolbox.framework
Security.framework
QuartzCore.framework
CFNetwork.framework
Foundation.framework
CoreFoundation.framework
CoreGraphics.framework
UIKit.framework
QuickLook.framework
libc++.tbd
libxml2.tbd
libz.tbd
libsqlite3.0.tbd
ImageIO.framework
CoreText.framework
Storekit.framework
UserNotifications 并设置为Optianal

9 点击Project->TARGETS->Build Settings搜索“ARC”,修改"Objective-C Automatic Reference Counting"项的值为"NO", 如果希望使用ARC则需要修改相应的内存管理代码。

10 修改头文件搜索路径

点击Project->TARGETS->Build Settings搜索"Header Search Paths",
双击搜索到的"Header Search Paths"项,将工程目录下的inc目录拖到打开的下拉框

11 修改静态库搜索路径

点击Project->TARGETS->Build Settings搜索"Library Search Paths",
如果"Library Search Paths"项下有值则不需要处理,
如果没有值则双击搜索到的"Library Search Paths"项,将工程目录下的libs目录(静态库所在目录)拖到打开的下拉框

12 修改BitCode

点击Project->TARGETS->Build Settings搜索BitCode
将Enable Bitcode项的值改成 ‘NO’

13 添加Web应用到工程

在工程目录下创建目录”Pandora->apps->[APPID]->www“目录,并将Web应用拷贝到www(小写字母)目录下
APPID为要加入到工程应用mainfest.json文件
添加Pandora目录到工程中

添加后会弹出选择类型框,选择”Create Folder References“

添加后工程内的Pandora目录为蓝色

14 修改control.xml文件

修改control.xml文件的appid节点值为mainfest.json文件的id节点下内容,appver节点内容修改为manifest.json文件的version->name节点下内容

如以上三图红圈标记位置都要一致

15 设置应用的图标

点击project->target->General->App Icons and Launch Images->App Icons Source项右侧小箭头

在新开页面根据提示将对应尺寸的应用图标拖入到虚线框中即可

16 设置应用的splash图片

拷贝HBuider-Hello工程的info.plist文件的UILaunchImages节点到新工程info.plist文件,同时拷贝HBuilder-Hello工程下的splash目录到新工程目录下并将其添加到新工程中
根据图片的尺寸逐个替换splash图片,注意文件名不能修改

17 设置应用显示的应用名

点击project->target->General->Identity->Display Name修改应用的显示名称

18 修改info.plist文件,添加App Transport Security Settings类型为Dictionary,在该项下添加Allow Arbitrary Loads项类型为Boolean,值为YES

IOS 10 需要在info.plist文件中添加隐私权限配置

运行时如果提示“打包时未添加XXX模块”,请参考SDK/Feature-ios.xls文件,查找对应插件名需要引入的5+库文件和系统库文件,添加到工程即可

Android创建最精简离线打包工程

14 关注 分享
DCloud_UNI_Trust zhaomenghuan wenju CFee badfl Runic 363712861@qq.com 雨沫 xinyaoxp@163.com wwangzhanji@126.com 木子喵 liangzhu@orange100.cn DCloud_UNI_Neil 4350254@qq.com

要回复文章请先登录注册

402825410@qq.com

402825410@qq.com

请问你用的xcode是几的版本,10.1的新建项目是没有Supporting Files目录,自己手动建吗
2019-04-12 16:44
402825410@qq.com

402825410@qq.com

回复 grs0515@163.com:
遇到同样的问题。请问解决了吗
2019-04-12 16:11
jnienv@163.com

jnienv@163.com

增加读取相册的插件Gallery,同时需要导入TZImagePickerController.bundle
2019-04-02 11:39
Getlud

Getlud

@SDK_骁骑 好文,sdk里的demo工程太臃肿了。 这个基础的配置是不支持nvue的吧,如果要支持nvue 要加上哪些模块呢?
2019-04-02 10:05
grs0515@163.com

grs0515@163.com

@SDK_骁骑
Undefined symbols for architecture x86_64:
"___isOSVersionAtLeast", referenced from:
-[FLAnimatedImageView commonInit] in liblibPDRCore.a(FLAnimatedImageView.o)
-[PDRCoreAppFrame setOptions:] in liblibPDRCore.a(PDRCoreAppFrame.o)
+[PDRCore rootViewEdgeInsets] in liblibPDRCore.a(PDRCore.o)
-[H5WEWKWebview webView:didFinishNavigation:] in liblibPDRCore.a(H5WEWKWebview.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2019-03-14 17:11
136260130@qq.com

136260130@qq.com

求最简打包的压缩包,用不到的库太多了,删了还报错,尴尬。
2019-03-06 16:46
回首半生仍年少

回首半生仍年少

回复 296604153@qq.com:
真心不错,通过你的方法终于搞定了,谢谢。
2018-12-14 18:28
g417317028@163.com

g417317028@163.com

Xcode打包出现 main bundle ****.app doesn't have a main Mach-O file
2018-12-12 11:10
296604153@qq.com

296604153@qq.com

使用最新版Xcode 10.1 使用上文配置会出现一些问题,这里已经修正好,可查看链接:
https://www.cc520.me/article/40
2018-11-09 17:51
张释

张释

mark
2018-08-15 15:00
HADSI

HADSI

按照步骤做一直都没什么问题,就是启动程序后一显示空白页,什么都没有,也没报什么错就只有个One of the two will be used. Which one is undefined,这个应该没什么影响的吧,到底是哪一步出错了呢,求来个大佬帮忙解答下,速求
2018-08-04 11:00
哈哈哈哈额

哈哈哈哈额

回复 15515806372@163.com:
能具体说一下嘛,谢谢啦
2018-07-06 18:50
15515806372@163.com

15515806372@163.com

回复 哈哈哈哈额:
解决了,project文件里面有个配置需要改一下。
2018-07-06 13:20
哈哈哈哈额

哈哈哈哈额

回复 15515806372@163.com:
我也遇到这个问题,请问你解决了吗
2018-07-05 11:24
SDK_骁骑

SDK_骁骑

回复 15515806372@163.com:
请上传一个可重新啊问题的Demo方便我们排查原因
2018-06-25 16:22
15515806372@163.com

15515806372@163.com

为什么先白屏过了十秒左右才打开启动界面然后又过了十来秒才进入程序?
2018-06-22 15:47
475857633@qq.com

475857633@qq.com

回复 SDK_骁骑:
问题解决了,是我的www目录写成了大写的
2018-04-03 17:50
475857633@qq.com

475857633@qq.com

回复 SDK_骁骑:
在啥地方上传工程?我一个月之前离线打包完是可以正常使用的,我尝试了一下把我的WWW目录丢到官方的demo底下和我前面描述的情况一样,然后把官方的demo的WWW目录拷到我的目录底下发现可以运行。所以不知道是不是我manifest.json配置的问题
{
"@platforms": [
"android",
"iPhone",
"iPad"
],
"id": "H53E747C1",
"name": "友趣通",
"version": {
"name": "1.5.3",
"code": ""
},
"description": "友趣通",
"icons": {
"72": "icon.png"
},
"launch_path": "index.html",
"fullscreen": false,
"developer": {
"name": "",
"email": "",
"url": ""
},
"permissions": {
"Accelerometer": {
"description": "访问加速度感应器"
},
"Audio": {
"description": "访问麦克风"
},
"Messaging": {
"description": "短彩邮件插件"
},
"Cache": {
"description": "管理应用缓存"
},
"Camera": {
"description": "访问摄像头"
},
"Console": {
"description": "跟踪调试输出日志"
},
"Contacts": {
"description": "通过访问系统通讯录,您的朋友将更加方便的找到您,您的通讯录将不做任何其他用途。"
},
"Device": {
"description": "访问设备信息"
},
"Downloader": {
"description": "文件下载管理"
},
"Events": {
"description": "应用扩展事件"
},
"File": {
"description": "访问本地文件系统"
},
"Gallery": {
"description": "访问系统相册"
},
"Geolocation": {
"description": "访问位置信息"
},
"Invocation": {
"description": "使用Native.js能力"
},
"Orientation": {
"description": "访问方向感应器"
},
"Proximity": {
"description": "访问距离感应器"
},
"Storage": {
"description": "管理应用本地数据"
},

"Uploader": {
"description": "管理文件上传任务"
},
"Runtime": {
"description": "访问运行期环境"
},
"XMLHttpRequest": {
"description": "跨域网络访问"
},
"Zip": {
"description": "文件压缩与解压缩"
},
"Barcode": {
"description": "管理二维码扫描插件"
},
"Maps": {
"description": "管理地图插件"
},
"Speech": {
"description": "管理语音识别插件"
},
"Webview": {
"description": "窗口管理"
},
"NativeUI": {
"description": "原生UI控件"
},
"Navigator": {
"description": "浏览器信息"
},
"NativeObj": {
"description": "原生对象"
},
"Statistic": {},
"Push": {},
"Payment": {},
"Share": {}
},
"plus": {
"launchwebview": {
"bottom": "0px",
"background": "#fff",
"subNViews": [
{
"id": "tabBar",
"styles": {
"bottom": "-50px",
"left": "0",
"height": "50px",
"width": "100%",
"backgroundColor": "#fff"
},
"tags": [
{
"tag": "font",
"id": "indexIcon",
"text": "\ue60a",
"position": {
"top": "9px",
"left": "0",
"width": "20%",
"height": "24px"
},
"textStyles": {
"fontSrc": "_www/fonts/iconfonts.ttf",
"align": "center",
"size": "24px"
}
}, {
"tag": "font",
"id": "indexText",
"text": "拨打",
"position": {
"top": "30px",
"left": "0",
"width": "20%",
"height": "24px"
},
"textStyles": {
"align": "center",
"size": "10px"
}
}, {
"tag": "font",
"id": "newsIcon",
"text": "\ue603",
"position": {
"top": "9px",
"left": "20%",
"width": "20%",
"height": "24px"
},
"textStyles": {
"fontSrc": "_www/fonts/iconfonts.ttf",
"align": "center",
"size": "24px"
}
}, {
"tag": "font",
"id": "newsText",
"text": "通讯录",
"position": {
"top": "30px",
"left": "20%",
"width": "20%",
"height": "24px"
},
"textStyles": {
"align": "center",
"size": "10px"
}
}, {
"tag": "font",
"id": "contactIcon",
"text": "\ue601",
"position": {
"top": "9px",
"left": "40%",
"width": "20%",
"height": "24px"
},
"textStyles": {
"fontSrc": "_www/fonts/iconfonts.ttf",
"align": "center",
"size": "24px"
}
}, {
"tag": "font",
"id": "contactText",
"text": "发现",
"position": {
"top": "30px",
"left": "40%",
"width": "20%",
"height": "24px"
},
"textStyles": {
"align": "center",
"size": "10px"
}
}, {
"tag": "font",
"id": "newwindowIcon",
"text": "\ue60b",
"position": {
"top": "9px",
"left": "60%",
"width": "20%",
"height": "24px"
},
"textStyles": {
"fontSrc": "_www/fonts/iconfonts.ttf",
"align": "center",
"size": "24px"
}
}, {
"tag": "font",
"id": "shopwindowText",
"text": "趣商城",
"position": {
"top": "30px",
"left": "60%",
"width": "20%",
"height": "24px"
},
"textStyles": {
"align": "center",
"size": "10px"
}
}, {
"tag": "font",
"id": "shopwindowIcon",
"text": "\ue606",
"position": {
"top": "9px",
"left": "80%",
"width": "20%",
"height": "24px"
},
"textStyles": {
"fontSrc": "_www/fonts/iconfonts.ttf",
"align": "center",
"size": "24px"
}
}, {
"tag": "font",
"id": "newwindowText",
"text": "我",
"position": {
"top": "30px",
"left": "80%",
"width": "20%",
"height": "24px"
},
"textStyles": {
"align": "center",
"size": "10px"
}
}, {
"tag": "rect",
"id": "tabBorder",
"position": {
"top": "0",
"left": "0",
"width": "100%",
"height": "1px"
},
"rectStyles": {
"color": "#ccc"
}
}
]
}
]
},
"splashscreen": {
"autoclose": true,
"waiting": true,
"delay": "0"
},
"popGesture": "close",
"runmode": "normal",
"signature": "Sk9JTiBVUyBtYWlsdG86aHIyMDEzQGRjbG91ZC5pbw==",
"distribute": {
"plugins": {
"share": {
"weixin": {
"appid": "wx9368a552931b468a",
"appsecret": "b49085826dfe6c758162c6957f4b57f3",
"description": "可选,微信分享"
}
},
"payment": {
"alipay": {
"description": "阿里支付",
"scheme": ""
},"appleiap":{"description":"Apple应用内支付"}
},
"push": {
"igexin": {
"appid": "IMB46Esl6w9PW15nw1u9U2",
"appkey": "A5qUZ0MMXz7gyHrGGOF988",
"appsecret": "0kj3497N9q9moIrJdPDxF5"
}
},
"statics": {
"umeng": {
"appkey_ios": "5a697613f29d9818bd0001c4",
"channelid_ios": "asdasdasdad",
"appkey_android": "5a6954f8b27b0a66f600000d",
"channelid_android": "adssvsadwqd"
}
}
},
"apple": {
"appid": "",
"mobileprovision": "",
"password": "",
"p12": "",
"devices": "universal",
"frameworks": [],
"plistcmds": [
"Set :NSContactsUsageDescription 通过访问系统通讯录,您的朋友将更加方便的找到您,您的通讯录将不做任何其他用途。"
]
},
"google": {
"packagename": "",
"keystore": "",
"password": "",
"aliasname": "",
"permissions": [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.INTERNET\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
"<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
"orientation": [
"portrait-primary"
],
"icons": {
"ios": {
"prerendered": true,
"iphone": {
"normal": "unpackage/res/icons/57x57.png",
"retina": "unpackage/res/icons/114x114.png",
"spotlight-normal": "unpackage/res/icons/29x29.png",
"spotlight-retina": "unpackage/res/icons/58x58.png",
"settings-normal": "unpackage/res/icons/29x29.png",
"app@3x": "unpackage/res/icons/180x180.png",
"app@2x": "unpackage/res/icons/120x120.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@2x": "unpackage/res/icons/80x80.png",
"spotlight@3x": "unpackage/res/icons/120x120.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"notification@3x": "unpackage/res/icons/60x60.png",
"retina8": "unpackage/res/icons/180x180.png",
"retina7": "unpackage/res/icons/120x120.png",
"settings-retina": "unpackage/res/icons/58x58.png",
"settings-retina8": "unpackage/res/icons/87x87.png",
"spotlight-retina7": "unpackage/res/icons/80x80.png"
},
"ipad": {
"normal": "unpackage/res/icons/72x72.png",
"retina": "unpackage/res/icons/144x144.png",
"spotlight-normal": "unpackage/res/icons/50x50.png",
"spotlight-retina": "unpackage/res/icons/100x100.png",
"app": "unpackage/res/icons/76x76.png",
"app@2x": "unpackage/res/icons/152x152.png",
"settings": "unpackage/res/icons/29x29.png",
"spotlight": "unpackage/res/icons/40x40.png",
"proapp@2x": "unpackage/res/icons/167x167.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"spotlight@2x": "unpackage/res/icons/80x80.png",
"notification": "unpackage/res/icons/20x20.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"retina7": "unpackage/res/icons/152x152.png",
"normal7": "unpackage/res/icons/76x76.png",
"settings-retina": "unpackage/res/icons/58x58.png",
"settings-normal": "unpackage/res/icons/29x29.png",
"spotlight-normal7": "unpackage/res/icons/40x40.png",
"spotlight-retina7": "unpackage/res/icons/80x80.png"
},
"appstore": "unpackage/res/icons/1024x1024.png"
},
"android": {
"mdpi": "unpackage/res/icons/48x48.png",
"ldpi": "unpackage/res/icons/48x48.png",
"hdpi": "unpackage/res/icons/72x72.png",
"xhdpi": "unpackage/res/icons/96x96.png",
"xxhdpi": "unpackage/res/icons/144x144.png",
"xxxhdpi": "unpackage/res/icons/192x192.png"
}
},
"splashscreen": {
"ios": {
"iphone": {
"default": "",
"retina35": "unpackage/qid/ios/640x960.png",
"retina40": "unpackage/qid/ios/640x1136.png",
"retina47": "unpackage/qid/ios/750x1334.png",
"retina55": "unpackage/qid/ios/1242x2208.png",
"retina55l": "unpackage/qid/ios/2208x1242.png",
"iphonex": "unpackage/qid/ios/1125x2436.png",
"iphonexl": "unpackage/qid/ios/2436x1125.png"
},
"ipad": {
"portrait": "unpackage/qid/ios/768x1004.png",
"portrait-retina": "unpackage/qid/ios/1536x2008.png",
"landscape": "unpackage/qid/ios/1024x768.png",
"landscape-retina": "unpackage/qid/ios/2048x1496.png",
"portrait-retina7": "unpackage/qid/ios/1536x2048.png",
"landscape7": "unpackage/qid/ios/1024x768.png",
"landscape-retina7": "unpackage/qid/ios/2048x1536.png",
"portrait7": "unpackage/qid/ios/768x1024.png"
}
},
"android": {
"mdpi": "",
"ldpi": "",
"hdpi": "unpackage/qid/android/480x762.png",
"xhdpi": "unpackage/qid/android/720x1242.png",
"xxhdpi": "unpackage/qid/android/1080x1882.png"
}
},
"debug": true
},
"ads": {
"rp": false,
"splash": false,
"push": false,
"spot": false
},
"adid": ""
},
"dependencies": {
"pages": {
"index.html": {
"resources": [
"js/mui.min.js",
"css/mui.min.css",
"html/tab-webview-subpage-about.html",
"fonts/mui.ttf",
"fonts/iconfont.ttf",
"html/tab-webview-subpage-chat.html",
"js/util.js",
"images/fm.fw.png",
"main/communicationBook/indexed-list.html",
"login.html",
"main/dial/dial_list.html",
"images/Welcome.png",
"main/find/findMain.html",
"js/DateUtils.js",
"js/Statistics.js",
"js/webSql/createtable.js",
"js/uuid.js",
"js/log.js"
],
"refer": [
"html/tab-webview-subpage-contact.html",
"html/new-webview.html",
"main/my/my.html",
null,
"main/shop/shopMain.html",
"main/dial/chat.html"
],
"priority": 0
},
"launch.html": {
"resources": [
"js/mui.min.js",
"css/mui.min.css",
"html/tab-webview-subpage-about.html"
],
"refer": [
"html/tab-webview-subpage-setting.html",
"html/tab-webview-subpage-chat.html",
"html/tab-webview-subpage-contact.html"
],
"priority": 0
},
"html/tab-webview-subpage-setting.html": {
"resources": [
"fonts/mui.ttf",
"css/mui.min.css",
"js/mui.min.js"
],
"refer": [],
"priority": 0
},
"html/tab-webview-subpage-about.html": {
"resources": [
"css/mui.min.css",
"js/mui.min.js",
"js/util.js"
],
"refer": [],
"priority": 0
},
"html/tab-webview-subpage-chat.html": {
"resources": [
"fonts/mui.ttf",
"js/mui.min.js",
"css/mui.min.css"
],
"refer": [],
"priority": 0
},
"html/tab-webview-subpage-contact.html": {
"resources": [
"images/60x60.gif",
"js/mui.min.js",
"css/mui.min.css"
],
"refer": [],
"priority": 0
},
"html/new-webview.html": {
"resources": [
"css/mui.min.css",
"js/mui.min.js",
"fonts/mui.ttf"
],
"refer": [],
"priority": 0
},
"main/dial/fixedDialingNumbers.html": {
"resources": [
"fonts/mui.ttf",
"images/user-photo.jpg",
"js/mui.js",
"css/mui.css",
"js/checkUserAgent.js",
"js/communicationBook/synchronization.js",
"images/dial/user.png",
"css/header.css",
"images/dial/img-callhead2@1x.png",
"images/dial/img-callhead2@2x.png",
null
],
"refer": [
"main/dial/addOneKeyDialing.html"
],
"priority": 0
},
"main/dial/dial_list.html": {
"resources": [
"main/communicationBook/indexed-list.html",
"images/sq.png",
"js/dial/Outbound.js",
"images/sc.png",
"js/webSql/createtable.js",
"js/dial/dial.js",
"css/dial/dialNum.css",
"css/mui.min.css",
"images/dial/arrow.png",
"js/pinYin.js",
"fonts/mui.ttf",
"js/uuid.js",
"js/jquery-2.2.0.min.js",
"js/communicationBook/synchronization.js",
"js/util.js",
"js/mui.min.js",
"images/find/fastRecharge3.jpg",
"images/find/fastRecharge2.jpg",
"images/find/fastRecharge4.jpg",
"images/find/fastRecharge1.jpg",
"js/imgload/imgload.js",
"images/loadimg.gif",
"js/imgload/md5.min.js",
"images/phone.png",
null,
"images/translate.png",
"images/dial/qiandao@2x.gif",
"images/dial/img-banner-lb1@2x.png",
"images/dial/img-banner-lb3@2x.png",
"images/dial/img-banner-lb2@2x.png",
"images/dial/btn-detail@2x.png",
"images/dial/tab-dialing-none-h@2x.png",
"images/dial/btn-del@1x.png",
"images/dial/btn-del@2x.png",
"images/dial/img-honorzxVIP@2x.png",
"images/dial/tab-dialing-block-h@2x.png",
"images/dial/img-call@2x.png",
"images/dial/img-callout@2x.png",
"js/communicationBook/forcedUpdate.js",
"js/mui/signin.js",
"css/multi_alert.css",
"js/webSocket.js",
"db/tel.db3",
"images/dial/btn-callparty@2x.png",
"images/range_icon/img-honorpt@2x.png",
"css/dial/firstLogin.css",
"js/communicationBook/userGrade.js",
"js/webSql/sql.js",
"images/up_grade/bg_Sign.png",
"css/mui/signin.css",
"images/my/btn-close2@2x.png",
"js/mui/bizgrade.js",
"js/DateUtils.js",
"js/checkUserAgent.js",
"js/Statistics.js",
"images/range_icon/img-honorzj@2x.png"
],
"refer": [
"html/tab-webview-subpage-contact.html",
"html/new-webview.html",
"login.html",
"main/dial/dialupSettings.html",
"main/dial/outbound.html",
"main/dial/multipartyCalls.html",
"main/my/call_detail.html",
"main/dial/callRecordDetails.html",
"main/communicationBook/contactsDetails.html",
"main/my/my_range.html"
],
"priority": 0
},
"main/dial/dialupSettings.html": {
"resources": [
"js/mui.js",
"css/mui.css",
null
],
"refer": [
"main/dial/fixedDialingNumbers.html"
],
"priority": 0
},
"main/communicationBook/indexed-list.html": {
"resources": [
"js/pinYin.js",
"js/util.js",
"js/mui.min.js",
"fonts/mui.ttf",
"css/mui/mui.indexedlist.css",
"css/mui.min.css",
"js/mui/mui.indexedlist.js",
"js/uuid.js",
"js/jquery-2.2.0.min.js",
"js/communicationBook/synchronization.js",
"js/jroll2/jroll.js",
"images/user-photo.png",
"css/header.css",
"images/img_cs.png",
"css/mui/addtel.css"
],
"refer": [
"main/communicationBook/contactsDetails.html"
],
"priority": 0
},
"main/find/findMain.html": {
"resources": [
"images/find/fastRecharge3.jpg",
"css/app.css",
"images/find/fastRecharge2.jpg",
"images/find/fastRecharge1.jpg",
"images/find/fastRecharge4.jpg",
"js/mui.min.js",
"css/mui.min.css",
"css/my/all.css",
"fonts/mui.ttf",
"images/loadimg.gif",
null,
"js/imgload/imgload.js",
"js/imgload/md5.min.js",
"images/find/img-banner-fxy@1x.png",
"images/find/bg-ch@1x.png",
"js/Statistics.js",
"images/find/bg-ch@2x.png",
"js/log.js"
],
"refer": [
"main/find/fastRecharge.html",
"main/find/news.html",
"main/find/findReduce.html"
],
"priority": 0
},
"main/my/my.html": {
"resources": [
"fonts/mui.ttf",
"images/dial/user.png",
"css/mui.min.css",
"js/util.js",
"js/mui.min.js",
"images/find/fastRecharge4.jpg",
"main/my/give_charge.html",
"images/my/btn-givebalance@2x.png",
"images/img-head@2x.png",
"images/my/btn-RCHGbalance@2x.png",
"images/my/icon-share-friends@2x.png",
"images/my/icon-share-qq@2x.png",
"images/my/icon-share-wx@2x.png",
"js/checkUserAgent.js",
"css/share.css",
"js/mui/bizgrade.js",
"js/Statistics.js",
"js/log.js"
],
"refer": [
"main/my/set.html",
"main/my/Charge_balance.html",
"main/my/feedback.html",
"main/my/my_range.html"
],
"priority": 0
},
"main/my/set.html": {
"resources": [
"css/mui.min.css",
"js/pinYin.js",
"js/webSql/createtable.js",
"js/uuid.js",
"js/util.js",
"js/mui.min.js",
"fonts/mui.ttf",
"css/header.css",
"js/checkUserAgent.js"
],
"refer": [
"login.html",
"main/dial/dial_list.html",
"main/my/modify_password.html"
],
"priority": 0
},
"login.html": {
"resources": [
"js/app.js",
"css/style.css",
"js/mui.enterfocus.js",
"js/webSql/createtable.js",
"css/mui.min.css",
"js/util.js",
"js/mui.min.js",
"main/dial/dial_list.html",
"main/sys/register_tel.html",
"main/sys/modify_tel.html",
"index.html",
"css/placeholder.css",
"css/sys/button.css",
"fonts/mui.ttf",
"js/DateUtils.js",
"js/Statistics.js",
"js/log.js"
],
"refer": [
"main/dial/chat.html"
],
"priority": 0
},
"main/find/fastRecharge.html": {
"resources": [
"images/find/wx.jpg",
"images/find/zfb.jpg",
"css/my/all.css",
"js/mui.min.js",
"fonts/mui.ttf",
"css/mui.min.css",
"css/app.css",
"images/find/bg-deposit2@2x.png",
"images/find/bg-deposit@2x.png",
"images/find/img-HOT@2x.png",
"images/find/btn-wx@2x.png",
"images/find/icon-Alipay@2x.png",
"css/header.css"
],
"refer": [],
"priority": 0
},
"main/my/Charge_balance.html": {
"resources": [
"css/my/all.css",
"js/util.js",
"js/mui.min.js",
"images/find/fastRecharge3.jpg",
"fonts/mui.ttf",
"css/mui.min.css",
"images/find/fastRecharge4.jpg",
"images/my/btn-RCHG@2x.png",
"images/my/btn-give@2x.png"
],
"refer": [
"main/my/charge_record.html",
"main/communicationBook/giveTelephoneFare.html"
],
"priority": 0
},
"main/communicationBook/contactsDetails.html": {
"resources": [
"images/phone.png",
"images/user-photo.jpg",
"css/mui.css",
"js/dial/Outbound.js",
"js/mui.min.js",
"fonts/mui.ttf",
"js/uuid.js",
"css/header.css",
"images/img-head@2x.png",
"css/userDetail.css"
],
"refer": [
"main/communicationBook/giveTelephoneFare.html",
"main/text/socket.html",
"main/communicationBook/set.html"
],
"priority": 0
},
"main/dial/outbound.html": {
"resources": [
"css/mui.min.css",
"images/red-phone.png",
"images/dial/btn-call@2x.png",
"db/tel.db3"
],
"refer": [],
"priority": 0
},
"main/my/give_charge.html": {
"resources": [
"css/my/all.css",
"css/mui.min.css",
"js/mui.min.js",
"fonts/mui.ttf",
"css/header.css"
],
"refer": [],
"priority": 0
},
"main/dial/multipartyCalls.html": {
"resources": [
"js/mui.js",
"css/mui.css",
"js/dial/Outbound.js",
"fonts/mui.ttf",
"js/uuid.js",
"css/header.css",
"images/dial/btn-add@2x.png",
"images/my/btn-close2@2x.png"
],
"refer": [
"main/dial/addOneKeyDialing.html"
],
"priority": 0
},
"main/communicationBook/giveTelephoneFare.html": {
"resources": [
"css/loginstyle.css",
"css/mui.css",
"js/mui.min.js",
"fonts/mui.ttf",
"images/find/fastRecharge1.jpg",
"images/find/fastRecharge3.jpg"
],
"refer": [],
"priority": 0
},
"main/find/news.html": {
"resources": [
"js/mui.min.js",
"fonts/mui.ttf",
"css/mui.min.css",
"css/my/all.css"
],
"refer": [],
"priority": 0
},
"main/my/modify_password.html": {
"resources": [
"css/my/all.css"
],
"refer": [],
"priority": 0
},
"main/my/feedback.html": {
"resources": [
"js/mui.min.js",
"css/my/all.css",
"css/placeholder.css"
],
"refer": [],
"priority": 0
},
"main/my/my_range.html": {
"resources": [
"css/my/all.css",
"js/mui.min.js",
"fonts/mui.ttf",
"css/mui.min.css",
"images/find/fastRecharge4.jpg",
"images/my/bg-Card-gj@1x.png",
"images/my/img-banner-jf@2x.png",
"css/header.css",
"images/my/bg-Card-cjVIP@1x.png",
"images/my/bg-Card-cjVIP@2x.png",
"images/my/bg-Card-gj@2x.png",
"images/my/bg-Card-pt@2x.png",
"images/my/icon-LEVEL@2x.png",
"images/my/icon-LEVEL@1x.png"
],
"refer": [],
"priority": 0
},
"main/dial/addOneKeyDialing.html": {
"resources": [
"js/pinYin.js",
"css/mui.min.css",
"js/mui/mui.indexedlist.js",
"js/jquery-2.2.0.min.js",
"js/mui.min.js",
"css/mui/mui.indexedlist.css"
],
"refer": [],
"priority": 0
},
"main/sys/register_tel.html": {
"resources": [
"css/sys/register.css",
"css/mui.css",
"js/mui.min.js",
"fonts/mui.ttf",
"login.html",
"js/checkUserAgent.js",
"main/sys/register_validate.html",
"css/placeholder.css"
],
"refer": [],
"priority": 0
},
"main/sys/modify_tel.html": {
"resources": [
"js/mui.min.js",
"css/sys/register.css",
"login.html",
"css/mui.css",
"fonts/mui.ttf"
],
"refer": [],
"priority": 0
},
"main/my/index.html": {
"resources": [
"js/imgload/imgload.js",
"css/imgload.css",
"js/mui.min.js",
"js/imgload/md5.min.js",
"css/mui.css",
"images/iconfont-tianjia.png",
"images/loadimg.gif"
],
"refer": [],
"priority": 0
},
"main/find/findReduce.html": {
"resources": [
"images/find/btn-wx@2x.png",
"images/find/img-banner-cz@2x.png",
"images/find/icon-Alipay@2x.png",
"fonts/mui.ttf"
],
"refer": [],
"priority": 0
},
"main/sys/register_validate.html": {
"resources": [
"main/sys/register_tel.html",
"main/sys/register_reset.html",
"js/mui.min.js",
"css/sys/register.css",
"fonts/mui.ttf",
"css/mui.css"
],
"refer": [],
"priority": 0
},
"main/sys/register_reset.html": {
"resources": [
"main/sys/register_validate.html",
"js/mui.min.js",
"css/sys/register.css",
"login.html",
"fonts/mui.ttf",
"css/mui.css"
],
"refer": [],
"priority": 0
},
"main/my/call_detail.html": {
"resources": [
"js/mui.pullToRefresh.js",
"js/mui.pullToRefresh.material.js",
"main/my/call_record.json",
"images/my/btn-close2@2x.png",
"css/my/all.css"
],
"refer": [],
"priority": 0
},
"main/dial/callRecordDetails.html": {
"resources": [
"images/phone.png",
"images/user-photo.jpg",
"css/mui.css",
"js/dial/Outbound.js",
"js/mui.min.js",
"fonts/mui.ttf",
"js/uuid.js",
"images/img-head@2x.png",
"css/header.css",
"css/mui.min.css",
"images/dial/btn-phone@2x.png",
"css/userDetail.css"
],
"refer": [],
"priority": 0
},
"main/text/socket.html": {
"resources": [],
"refer": [
"main/communicationBook/contactsDetails.html"
],
"priority": 0
},
"main/dial/chat.html": {
"resources": [],
"refer": [
"main/dial/chatinfo.html"
],
"priority": 0
},
"main/shop/shopMain.html": {
"resources": [
"js/mui.pullToRefresh.js",
"js/mui.min.js",
"js/mui.pullToRefresh.material.js",
"fonts/mui.ttf",
"css/shop/goodslist.css",
"css/mui.min.css",
"css/header.css",
"js/log.js"
],
"refer": [
"main/shop/goodsdetail.html"
],
"priority": 0
},
"main/shop/goodsdetail.html": {
"resources": [
"js/checkUserAgent.js",
"js/util.js",
"js/mui.min.js",
"fonts/mui.ttf",
"js/log.js",
"css/shop/goodslist.css",
"css/mui.min.css",
"css/header.css"
],
"refer": [],
"priority": 0
}
},
"idle": {
"resources": []
}
}
}
我只知道去掉注释,其他格式有什么需要注意的就不知道了,麻烦帮忙检查下谢谢
2018-04-03 11:41
SDK_骁骑

SDK_骁骑

回复 475857633@qq.com:
看日志没法判断原因,请上传一个可重现问题的原生工程
2018-04-02 20:31
475857633@qq.com

475857633@qq.com

2018-04-02 09:40:52.455523+0800 yqt[4586:1158953] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2018-04-02 09:40:52.511617+0800 yqt[4586:1158953] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/chan/Library/Developer/CoreSimulator/Devices/4D4CE2AA-3A98-46C5-9166-B08694DFF360/data/Containers/Data/Application/F530BCA1-5698-43DC-AB40-2AB074A8AA49/Library/Cookies/com.youqtx.tool.binarycookies
2018-04-02 09:40:52.686149+0800 yqt[4586:1158953] [MC] Lazy loading NSBundle MobileCoreServices.framework
2018-04-02 09:40:52.686890+0800 yqt[4586:1158953] [MC] Loaded MobileCoreServices.framework
2018-04-02 09:40:53.182056+0800 yqt[4586:1158953] ######===>>>>New Device Model:[x86_64]
2018-04-02 09:40:53.191086+0800 yqt[4586:1158953] -canOpenURL: failed for URL: "hbuilder://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
2018-04-02 09:40:54.189161+0800 yqt[4586:1159130] NSURLConnection finished with error - code -1100
2018-04-02 09:41:30.142647+0800 yqt[4586:1159388] [BoringSSL] Function boringssl_session_errorlog: line 2871 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert
2018-04-02 09:41:30.143058+0800 yqt[4586:1159388] [BoringSSL] Function boringssl_session_errorlog: line 2871 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert
你好,请问一下这个是什么原因,操作系统选到iOS11.2的时候index.html就出不来,之前系统iOS8.1的时候还是可以的
2018-04-02 09:49
SDK_骁骑

SDK_骁骑

回复 522011796@qq.com:
可以删掉报错的代码或者更新一下静态库文件和头文件引用,
或者delegate里这部分注释掉
```
#import "DCSplashAdObserver.h"
```

```
// 示例默认带开屏广告,如果不需要广告,可注释下面一行
#define dcSplashAd
```
2018-03-21 13:25
649456835@qq.com

649456835@qq.com

回复 522011796@qq.com:
怎么解决的
2018-03-20 08:32
522011796@qq.com

522011796@qq.com

回复 522011796@qq.com:
已经处理好了
2018-03-13 23:43
522011796@qq.com

522011796@qq.com

@DCloud_SDK_骁骑 请教出现:Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_DCSplashAdObserver", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_DCSplashAdObserver", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2018-03-13 19:05
SDK_骁骑

SDK_骁骑

回复 essense:
检查info.plist里是否添加了UILaunchImage的设置,
2018-03-08 19:14
essense

essense

文档中的Step 8,少添加liblibUI.a, libcoreSupport.a, liblibPDRCore.a, liblibNativeUI.a

另外请教一下:Step 16. 设置应用的splash图片
这步照做了,但不显示splash图片,表现为,app打开后不久直接进入index.html,同事在显示转圈的loading,应该是先显示splash图并显示loading动画,转圈结束后显示已经预加载好的index.html

请指教,不胜感激!
2018-02-04 08:41
PeterYu

PeterYu

回复 SDK_骁骑:
谢谢官方提供这么好的一个框架。按照这篇文档941来打包,可以使用扩展插件的。我之前也是由于相同操作错误才没有成功打包的。也按照931配置隐私description了。29日刚刚提交上去;看看审查员怎么说吧。
2017-12-31 07:48
PeterYu

PeterYu

回复 SDK_骁骑:
查了半天,原来是在feature.plist文件里面添加plugintest=>Dictionary=>(0 item)的时候出错了。将class => String => PGPluginTest添加成为一个独立的键;而不是plugintest的子键!

我最近怎么啦?工作太累了还是已经老眼昏花了?现在都已经是人工智能时代了。怎么还需要我这个人类在做这些需要一丝不苟的工作?作为老程序员的我是否应该需要怀疑人生了?

其实测试专业(包括调试)工作内容(功能测试,安全测试,性能测试,自动化测试等等编写测试案例查看测试报告)比较单调、高度重复性、需要一丝不苟、无创新性,完全可以使用机器人啊。

现在tensorFlow等现成框架一堆堆的,估计开发IDE的人来做这个事情不要10个人年吧?

像Selenium, Appscan等专业测试工具的开发者反而不容易实现人工智能。原因很简单;他们没有IDE开发者的优势:可以收集程序员的各种数据,进行数据清洗等等;所谓巧妇难为无米之炊。

希望有中国人可以开创先河,首先做出世界第一个测试机器人/调试机器人。只可惜IDE不是我的工作内容。。。
2017-12-28 14:36
PeterYu

PeterYu

回复 SDK_骁骑:
已经做了啊。完全按照http://ask.dcloud.net.cn/article/67的做法,直接将PluginTest.m、PluginTest.h文件拖动到Xcode9的HBuilder-Hello工程里面并选择add folder reference而不是create folder作为加入选项的啊。

谢谢官方。
2017-12-28 11:05
SDK_骁骑

SDK_骁骑

回复 PeterYu:
plugintest是扩展插件示例要在Hello工程中使用,还需要两处配置
1 拷贝HBuilder-Integrate工程目录下的PluginTest.m、PluginTest.h文件到HBuilder-Hello工程
2 HBuilder-Hello工程下PandoraApi.bundle/feature.plsit文件里增加plugintest插件的声明,具体配置方法可以参考HBuilder-Integrate工程下PandoraApi.bundle/feature.plsit文件
2017-12-28 10:57
PeterYu

PeterYu

回复 PeterYu:
在Xcode9上面使用IOS SDK\HBuilder-Hello文件夹内的包来打包;结果还是提示:
HTML5+ Runtime
打包时未添加plugintest模块,请参考
http://ask.dcloud.net.cn/article/283

这个是不是iOS20171130版本的SDK的一个bug呢?以前用20171031版本都可以啊?

期待官方查一下。
2017-12-28 10:47
PeterYu

PeterYu

使用这篇文件流程打包加上插件(http://ask.dcloud.net.cn/article/67)的时候,会显示manifest.json中为添加plugintest模块,请参考http://ask.dcloud.net.cn/publish/article/283。我已经在manifest.json里面增加了"plugintest":{"description":"H5Plug Plugin Demo2"}了,莫非是系统没有加载manifest.json文件。可是我是在/apps/我的appid/www/index.html里面转跳我司自己的服务器的啊。只是app是正常运行并调用了index.html文件。如果加载manifest.json文件呢?
2017-12-27 17:24
榕基小包

榕基小包

使用这种方式集成后,Xcode打的ipa包放到HBuilder工作下的/unpackage/debug目录下。运行自定义基座运行,提示“无法识别的自定义基座包,可从菜单:运行-真机运行-设置自定义调试基座 进行制作”。请问是什么原因。@DCloud_SDK_骁骑
2017-12-23 14:42
flj234@sina.com

flj234@sina.com

回复 liangzhu@orange100.cn:
我的也是你一样的报错,但是我的打开是白屏,然后就是请求页面无法打开
2017-12-20 13:18
liangzhu@orange100.cn

liangzhu@orange100.cn

这篇写的非常详细了, 按照步骤来已经成功离线编译了。环境是 xcode 9.1 (9B55),sdk用的是iOS-SDK@1.9.9.38472_20171031.zip 这个压缩包里的 HBuilder-Hello这个项目,后来用自己新建的一个本地项目也可以成功编译运行。

还有两个小问题没解决,一个是启动界面,按文档里做的,但是启动的时候没有启动图片。
另一个是启动的时候有个报错
2017-12-01 09:01:40.399868+0800 testOri[1608:18454] ######===>>>>New Device Model:[x86_64]
2017-12-01 09:01:40.433879+0800 testOri[1608:18454] -canOpenURL: failed for URL: "hbuilder://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
2017-12-01 09:01:41.202179+0800 testOri[1608:18454] [MC] Lazy loading NSBundle MobileCoreServices.framework
2017-12-01 09:01:41.203228+0800 testOri[1608:18454] [MC] Loaded MobileCoreServices.framework

也在info.plist配置了 LSApplicationQueriesSchemes,里面也添加了hbuilder但是还是有这个报错,只是不影响运行,但是怕将来有什么问题,有哪位解决了给指点一下呗
2017-12-01 09:10
lxl

lxl

妈呀,步骤太多了,能不能优化下,或者写个脚本自动生成项目
2017-10-03 00:55
Vol561

Vol561

按配置设置了splash启动页,把hbuild默认的启动页图拷贝了进去,但启动页还是显示白屏,为什么呢?
2017-09-15 18:33
ppbear_ly@163.com

ppbear_ly@163.com

回复 SDK_骁骑:
恩 可以了 但是我用的mui.ajax登录APP的首页一直登录报错什么原因
2017-09-13 16:56
SDK_骁骑

SDK_骁骑

回复 ppbear_ly@163.com:
1 检查应用存放的路径应当是 pandora/apps/[appid]/www目录下
2 检查manifest.json文件中是否有注释的代码,需要删掉
3 检查应用资源引入的方式是否正确,参考第13节
2017-08-25 17:35
ppbear_ly@163.com

ppbear_ly@163.com

ios 按照上述步骤运行起来后页面空白是什么原因?
2017-08-24 17:54
SDK_骁骑

SDK_骁骑

回复 Oben:
把头文件加到工程里并 设置一下头文件搜索路径,参考文档第10节
2017-08-16 16:38
Oben

Oben

PDRCore.h file not found 怎么回事儿?
2017-08-10 11:01
SDK_骁骑

SDK_骁骑

回复 金猫Tiger:
上传一个你配置的工程我看下
2017-06-21 15:49
金猫Tiger

金猫Tiger

回复 SDK_骁骑:
大神,我还有 一个想问题,现在 在离线打包项目 中,plus.navigator在 输出中是 "{}",导致plus.navigator.setStatusBarStyle('light');设置 浅色主题,白色字体设置不起,这个是什么问题,该加的 库和 lib 都加了,是不是 在info.plist中 还有什么东西,在“ios离线打包=平台功能配置”http://ask.dcloud.net.cn/article/173,我也做了,谢谢大神解惑。
2017-06-21 09:41
金猫Tiger

金猫Tiger

回复 SDK_骁骑:
大神,得行了。但是是这样的,我原先 没有加 push模块,因为 我想在 最简洁的离线打包 项目中,自行添加 手机的 基础控件模块,关于 有keyid的 第三方控件模块不加。但在 push模块中,有xiaomipush没有keyid的,我加上后,就可以设置的,在 ios 系统的 “通知” 也有了。
2017-06-21 09:17
SDK_骁骑

SDK_骁骑

回复 金猫Tiger:
void plus.runtime.setBadgeNumber( number ); 调用这个设置角标如果设置为0 这会清空,需要设置成其他值 如还不行请发一个demo给我
2017-06-19 15:43
金猫Tiger

金猫Tiger

添加 runtime 模块,那个 模块 中的 设置 图标右上角 数字 不得行,是还要 加 什么 info 字段吗?
2017-06-19 10:44
SDK_骁骑

SDK_骁骑

回复 cz848@qq.com:
工程需要引入libPDRCore.a到工程里
2017-05-18 12:49
cz848@qq.com

cz848@qq.com

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PTDeviceOSInfo", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_PDRCore", referenced from:
objc-class-ref in ViewController.o
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

请问怎么解决@DCloud_SDK_骁骑
2017-05-11 17:25
SDK_骁骑

SDK_骁骑

回复 363712861@qq.com:
好的
2017-05-02 19:32
363712861@qq.com

363712861@qq.com

回复 SDK_骁骑:
怎么发?是发个帖子放上demo@你吗?
2017-05-02 13:45
SDK_骁骑

SDK_骁骑

回复 363712861@qq.com:
你发一个可重现的Demo出来吧 我看下
2017-05-02 11:42
363712861@qq.com

363712861@qq.com

回复 SDK_骁骑:
离线打包之后启动页不能手动关闭了以及拍照图片不能显示,在HBuiler里面直接打包确是可以的,请问有解决办法吗?
2017-04-27 18:03
chens

chens

回复 SDK_骁骑:
Showing Recent Issues
Ld /Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Products/Debug-iphonesimulator/chaojiyulebao.app/chaojiyulebao normal x86_64
cd /Users/chen/Documents/chaojiyulebao
export IPHONEOS_DEPLOYMENT_TARGET=10.2
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -L/Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Products/Debug-iphonesimulator -L/Users/chen/Documents/chaojiyulebao/chaojiyulebao/libs -F/Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Products/Debug-iphonesimulator -filelist /Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Intermediates/chaojiyulebao.build/Debug-iphonesimulator/chaojiyulebao.build/Objects-normal/x86_64/chaojiyulebao.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=10.2 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Intermediates/chaojiyulebao.build/Debug-iphonesimulator/chaojiyulebao.build/Objects-normal/x86_64/chaojiyulebao_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -ObjC -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Intermediates/chaojiyulebao.build/Debug-iphonesimulator/chaojiyulebao.build/chaojiyulebao.app.xcent -lsqlite3.0 -lz -lxml2 -lstdc++.6 -framework UIKit -framework CoreGraphics -framework CoreFoundation -framework Foundation -framework CFNetwork -framework QuartzCore -framework Security -framework AudioToolbox -framework MediaPlayer -framework SystemConfiguration -framework MobileCoreServices -framework CoreTelephony -framework WebKit -framework JavaScriptCore -Xlinker -dependency_info -Xlinker /Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Intermediates/chaojiyulebao.build/Debug-iphonesimulator/chaojiyulebao.build/Objects-normal/x86_64/chaojiyulebao_dependency_info.dat -o /Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Products/Debug-iphonesimulator/chaojiyulebao.app/chaojiyulebao

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PTDeviceOSInfo", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_PDRCore", referenced from:
objc-class-ref in ViewController.o
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

请问是什么原因呢
2017-04-18 15:21
chens

chens

Showing Recent Issues
Ld /Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Products/Debug-iphonesimulator/chaojiyulebao.app/chaojiyulebao normal x86_64
cd /Users/chen/Documents/chaojiyulebao
export IPHONEOS_DEPLOYMENT_TARGET=10.2
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -L/Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Products/Debug-iphonesimulator -L/Users/chen/Documents/chaojiyulebao/chaojiyulebao/libs -F/Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Products/Debug-iphonesimulator -filelist /Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Intermediates/chaojiyulebao.build/Debug-iphonesimulator/chaojiyulebao.build/Objects-normal/x86_64/chaojiyulebao.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=10.2 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Intermediates/chaojiyulebao.build/Debug-iphonesimulator/chaojiyulebao.build/Objects-normal/x86_64/chaojiyulebao_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -ObjC -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Intermediates/chaojiyulebao.build/Debug-iphonesimulator/chaojiyulebao.build/chaojiyulebao.app.xcent -lsqlite3.0 -lz -lxml2 -lstdc++.6 -framework UIKit -framework CoreGraphics -framework CoreFoundation -framework Foundation -framework CFNetwork -framework QuartzCore -framework Security -framework AudioToolbox -framework MediaPlayer -framework SystemConfiguration -framework MobileCoreServices -framework CoreTelephony -framework WebKit -framework JavaScriptCore -Xlinker -dependency_info -Xlinker /Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Intermediates/chaojiyulebao.build/Debug-iphonesimulator/chaojiyulebao.build/Objects-normal/x86_64/chaojiyulebao_dependency_info.dat -o /Users/chen/Library/Developer/Xcode/DerivedData/chaojiyulebao-fjfyphrkmitoecfdtwkyanxprskk/Build/Products/Debug-iphonesimulator/chaojiyulebao.app/chaojiyulebao

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PTDeviceOSInfo", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_PDRCore", referenced from:
objc-class-ref in ViewController.o
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

请问什么原因
2017-04-18 15:13
SDK_骁骑

SDK_骁骑

回复 740930061@qq.com:
MediaPlayer.framework
AudioToolbox.framework
这两个系统库加上试试
2017-04-13 18:19
740930061@qq.com

740930061@qq.com

回复 所谓:
我也是这个错..请问,最后怎么解决的
2017-04-05 10:04
chuyin

chuyin

回复 我是用户名:
我的情况 跟你一样,解决了么???
2017-03-29 17:48
chuyin

chuyin

回复 Costword:
ios的内存管理机制,ARC为自动管理内存
2017-03-29 16:46
czx517625126@163.com

czx517625126@163.com

唉,照着文档配置还报那么多错,怪我智商不够嘛
2017-03-13 21:33
SDK_骁骑

SDK_骁骑

检查一下第 7 8 9 三步, 主要是第7步的 -ObjC的大小写要注意
2017-02-22 18:21
freemudHB

freemudHB

回复 SDK_骁骑:
我也遇到这样的问题了,manifest.json文件符合json文件格式,还是没解决
2017-02-20 13:43
SDK_骁骑

SDK_骁骑

回复 我是用户名:
检查应用的manifest.json文件是否符合json文件格式
2017-02-04 15:29
我是用户名

我是用户名

xocde8刚启动崩溃:
*** First throw call stack:
(
0 CoreFoundation 0x000000010b95534b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010e9e221e objc_exception_throw + 48
2 CoreFoundation 0x000000010b9c4f34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x000000010b8dac15 ___forwarding___ + 1013
4 CoreFoundation 0x000000010b8da798 _CF_forwarding_prep_0 + 120
5 DMSHBuilder 0x0000000109383870 -[PDRCoreAppCongfigParse load] + 350
6 DMSHBuilder 0x0000000109360a50 -[PDRCoreApp load] + 1104
7 DMSHBuilder 0x0000000109353bda -[PDRCoreAppManager load] + 211
8 DMSHBuilder 0x000000010934b63b -[PDRCore load] + 986
9 DMSHBuilder 0x000000010934adcb +[PDRCore initEngineWihtOptions:withRunMode:withAppManager:] + 119
10 DMSHBuilder 0x000000010931607a -[AppDelegate application:didFinishLaunchingWithOptions:] + 58
11 UIKit 0x00000001098fc68e -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 290
12 UIKit 0x00000001098fe013 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4236
13 UIKit 0x00000001099043b9 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1731
14 UIKit 0x0000000109901539 -[UIApplication workspaceDidEndTransaction:] + 188
15 FrontBoardServices 0x000000010f8f476b __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
16 FrontBoardServices 0x000000010f8f45e4 -[FBSSerialQueue _performNext] + 189
17 FrontBoardServices 0x000000010f8f496d -[FBSSerialQueue _performNextFromRunLoopSource] + 45
18 CoreFoundation 0x000000010b8fa311 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
19 CoreFoundation 0x000000010b8df59c __CFRunLoopDoSources0 + 556
20 CoreFoundation 0x000000010b8dea86 __CFRunLoopRun + 918
21 CoreFoundation 0x000000010b8de494 CFRunLoopRunSpecific + 420
22 UIKit 0x00000001098ffdb6 -[UIApplication _run] + 434
23 UIKit 0x0000000109905f34 UIApplicationMain + 159
24 DMSHBuilder 0x00000001093163f3 main + 99
25 libdyld.dylib 0x000000010efde68d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
2017-01-19 14:29
rein

rein

-canOpenURL: failed for URL: "hbuilder://" - error: "This app is not allowed to query for scheme builder"

有知道这个怎么解决的吗?这是什么错误?
2017-01-11 09:27
Costword

Costword

MRC是什么鬼,我们用ARC模式需要修改什么地方呀
2017-01-10 17:56
rein

rein

为什么我的应用到了启动的那一步了,却一直在显示等待,不能进入首页?
2017-01-10 17:28
SDK_骁骑

SDK_骁骑

回复 所谓:
检查一下第八节列表中需要添加到工程里的系统库都添加上没
2017-01-04 11:09
所谓

所谓

帮忙看下,出现2个错误,4个警告
Undefined symbols for architecture x86_64:
"_AudioServicesPlaySystemSound", referenced from:
-[PGDeviceStatus beep:] in liblibPDRCore.a(PGDeviceStatus.o)
-[PGDeviceStatus vibrate:] in liblibPDRCore.a(PGDeviceStatus.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2017-01-01 22:22
Runic

Runic

赞一个~
2016-11-16 14:25
badfl

badfl

好文
2016-11-16 14:12
瞳player

瞳player

不错
2016-10-25 14:39
Element

Element

为什么文章没有收藏按钮?
2016-10-19 14:07
wenju

wenju

mark
2016-10-10 21:46