DCloud_App_Array
DCloud_App_Array
  • 发布:2016-10-10 18:31
  • 更新:2024-06-13 19:48
  • 阅读:41660

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

分类:5+ SDK

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

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

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

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

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

iOSSDK/SDK/Bundles/PandoraApi.bundle
iOSSDK/SDK/control.xml
iOSSDK/SDK/Libs/liblibPDRCore.a
iOSSDK/SDK/Libs/libcoreSupport.a
iOSSDK/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创建最精简离线打包工程

17 关注 分享
Trust zhaomenghuan wenju CFee badfl Runic 3***@qq.com 雨沫 x***@163.com w***@126.com 木子喵 l***@orange100.cn Neil_HL 4***@qq.com skysowe 8***@qq.com 踏江行

要回复文章请先登录注册

4***@qq.com

4***@qq.com

回复 骁骑 :
在啥地方上传工程?我一个月之前离线打包完是可以正常使用的,我尝试了一下把我的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
骁骑

骁骑

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

4***@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
骁骑

骁骑

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

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

6***@qq.com

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

5***@qq.com

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

5***@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
骁骑

骁骑

回复 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

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