小编Gir*_*iga的帖子

为 arm64 和 x86_64 为 iOS 编译 Libical

我花了一些时间为 arm64 和 x86_64 架构为 iOS(设备和模拟器)编译 LibiCal。认为它可能对其他人有用。这是我编译 LibiCal-1.0 所遵循的步骤。我从下面的链接中获取了代码

编译libical

并进行了一些修改以适合 Xcode 5.1

1) 从以下 URL 下载 LibiCal

http://sourceforge.net/projects/freeassociation/

解压并进入 libCal-1.0 文件夹。然后运行

./引导

(需要从http://www.jattcode.com/installing-autoconf-automake-libtool-on-mac-osx-mountain-lion/下载 make 工具)

使用下面的脚本

#!/bin/sh

# SEE: http://www.smallsharptools.com/downloads/libical/

PATH="`xcode-select -print-path`/usr/bin:/usr/bin:/bin"

# set the prefix
PREFIX=${HOME}/Library/libical
OUTPUTDIR=../libical-build

export ARCH=arm64

# Select the desired iPhone SDK
export SDKVER="7.1"
export DEVROOT=`xcode-select --print-path`
export  SDKROOT=$DEVROOT/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS${SDKVER}.sdk
export IOSROOT=$DEVROOT/Platforms/iPhoneOS.platform

# Includes
# find $DEVROOT -type d -name include|grep -i iphone|grep -i arm-apple-darwin|grep -vi    install-tools|grep -vi simulator

# $SDKROOT/usr/include
# $DEVROOT/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/lib/gcc/arm-apple-darwin10/4.2.1/include

if …
Run Code Online (Sandbox Code Playgroud)

ios libical arm64

5
推荐指数
1
解决办法
4868
查看次数

具有 ionic-webview 的 Cordova 移动应用程序无法在 iOS 14 WkWebview 中存储/重试会话 cookie

我正在为我的 Cordova 移动应用程序使用 iOS 14 设备/模拟器,该应用程序使用 cordova-plugin-ionic-webview 并启用 WkWebView 设置。

我在 config.xml 中设置了以下选项

<access origin="myapp://mobileapp" />
<allow-navigation href="myapp://mobileapp" />
Run Code Online (Sandbox Code Playgroud)

这使得我所有的 xhr 调用都有“ origin:myapp://mobileapp ”标头。我已经正确定义了所有 CORS 标头。

现在我的身份验证 XHR 调用有 2 个 API(a)身份验证和(b)逐步操作。API (b) 将使用 API (a) 设置的 HTTPOnly 安全 cookie 以便做出适当响应。

上述两个 API 都可以在 UIWebview、iOS 13.5、iOS 13.7 模拟器和设备上完美运行。但在 iOS 14、iOS 13.3 中失败。在分析时,我发现 API (a) 中发送的 cookie 未存储在 WkWebview 中,因此在调用 API (b) 时不会发送它们。所以第二个 API 无法完成。

我看到cookie 在首次执行时被忽略跟踪预防wkwebview 错误,但无法识别问题。

当我在应用程序内浏览器中与 WkWebview 一起使用 API 时,API 运行良好,但仅在主 cordova …

cookies ios cordova wkwebview cordova-plugin-ionic-webview

5
推荐指数
1
解决办法
3961
查看次数