You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
supported when reading barcodes from files in local memory?</a>
136
+
</li>
137
+
<li>
138
+
<ahref="{{ site.faq_general }}add-remove-beep-sound.html">How to add/remove a "beep" sound once a
139
+
barcode
140
+
is found?</a>
141
+
</li>
142
+
<li>
143
+
<ahref="{{ site.faq_general }}nodejs-implementation.html">How do I create a NodeJS application
144
+
using the
145
+
SDK?</a>
146
+
</li>
147
+
<li>
148
+
<ahref="{{ site.faq_general }}delay-when-open-camera.html">How to get rid of the delay when opening
149
+
the
150
+
camera?</a>
151
+
</li>
152
+
<li>
153
+
<ahref="{{ site.faq_general }}general-troubleshooting-steps-for-decode-failure.html">What are the
154
+
general
155
+
troubleshooting steps if an image fails to decode with the JavaScript SDK?</a>
156
+
</li>
157
+
<li>
158
+
<ahref="{{ site.faq_general }}hide-laser-message-ui.html">How can I hide the laser bar and
159
+
Dynamsoft
160
+
message in the default UI of the BarcodeScanner?</a>
161
+
</li>
162
+
</ul>
163
+
</li>
164
+
165
+
<li>
166
+
<a>Mobile</a>
167
+
<ul>
168
+
<li>
169
+
<ahref="{{ site.faq_general }}reduce-battery-consumption.html">IOS & Android - How can I reduce battery consumption?</a>
170
+
</li>
171
+
<li>
172
+
<ahref="{{ site.faq_general }}page-freeze.html">IOS & Android - Why does the page sometimes freeze when I start the scanner?</a>
173
+
</li>
174
+
<li>
175
+
<ahref="{{ site.faq_general }}template-support.html">IOS & Android - How to import the settings of Barcode Scanner X app into my app?</a>
176
+
</li>
177
+
<li>
178
+
<ahref="{{ site.faq_general }}debug-mode-barcodescannerx.html">IOS & Android - How to use Debug Mode in Barcode Scanner X?</a>
179
+
</li>
180
+
<li>
181
+
<ahref="{{ site.faq_general }}no-camera-enhancer.html">IOS & Android - How can I use CameraX or third-party camera modules with Dynamsoft Barcode Reader?</a>
182
+
</li>
183
+
<li>
184
+
<ahref="{{ site.faq_general }}simulator-support.html">IOS - Does Dynamsoft Barcode Reader iOS support simulator devices?</a>
185
+
</li>
186
+
<li>
187
+
<ahref="{{ site.faq_general }}arm64-simulator-error.html">IOS - How to resolve the "Building for iOS Simulator, but linking in dylib built for iOS" error when building for the iOS simulator?</a>
188
+
</li>
189
+
<li>
190
+
<ahref="{{ site.faq_general }}reduce-final-size.html">Android - Can I reduce the size of the final Android app?</a>
191
+
</li>
192
+
<li>
193
+
<ahref="{{ site.faq_general }}proguard.html">Android - How to prevent project build failure after shrinking code?</a>
description: How to resolve the "Building for iOS Simulator, but linking in dylib built for iOS" error when building for the iOS simulator?
6
+
needAutoGenerateSidebar: true
7
+
---
8
+
9
+
# How to resolve the "Building for iOS Simulator, but linking in dylib built for iOS" error when building for the iOS simulator?
10
+
11
+
[<< Back to FAQ index](index.md)
12
+
13
+
DBR iOS can be used to build apps that belong to the arm64 architecture. If you try building an app for the arm64 simulator, and you migrated your app from an older version of Xcode to Xcode 12 or higher, then you might encounter the following error message:
14
+
15
+
> ld: "Building for iOS Simulator, but linking in dylib built for iOS, file '/ios/Pods/DynamsoftBarcodeReader/DynamsoftBarcodeReader.framework/DynamsoftBarcodeReader' for architecture arm64"
16
+
17
+
<br />
18
+
19
+
In order to fix the error, please take the following steps under the *Build Settings* of the Xcode project:
20
+
21
+
1. Under *User-Defined* -> find *VALIDATE_WORKSPACE* and set it to **YES**. Rebuild your project.
22
+
23
+
2. Under *Architectures* -> find *Build Active Architecture Only* and set it to **YES**.
24
+
25
+
3. Under *Architectures* -> make sure that *Architectures* is set to $(ARCHS_STANDARD).
26
+
27
+
<br />
28
+
29
+
If the error message persists, please make one of the following changes:
30
+
31
+
- Instead of using the .framework (which all the samples do by default), switch to using the corresponding .xcframework
32
+
33
+
- Under the *Build Settings* -> find *Excluded Architectures* -> in the *Debug* field click the + icon -> select *Any iOS Simulator SDK* -> put "arm64"
34
+
35
+
- You can also exclude architectures via the Podfile as such:
36
+
37
+
```ruby
38
+
post_install do |installer|
39
+
installer.pods_project.build_configurations.each do |config|
description: How can I solve the "Undefined symbols for architecture armv7" error when building on iOS?
6
+
needAutoGenerateSidebar: true
7
+
---
8
+
9
+
# How can I solve the "Undefined symbols for architecture armv7" error when building on iOS?
10
+
11
+
[<< Back to FAQ index](index.md)
12
+
13
+
DBR iOS is compatible with the arm64 and x86_64 architectures only. If you attempt to build an app that is targetting the armv7 architecture, you will be met with an error from the Barcode Reader framework saying
14
+
15
+
> Undefined symbols for architecture armv7
16
+
17
+
Please note that this will mostly occur with older versions of Xcode or iOS that are still compatible with the older iOS device models that used the armv7 architecture. For most devices that are able to run iOS 11 and higher, the architecture will be arm64.
18
+
19
+
By default, when you set the *Architectures* in *Build Settings* to the "$(ARCHS_STANDARD) - Standard Architectures (arm64)", the armv7 architecture should automaticallt not be included. To ensure that your app ignores the armv7 architecture, you can add it to the *Excluded Architectures* field of the *Build Settings*.
description: Does the SDK support iOS Bitcode Framework?
6
+
needAutoGenerateSidebar: true
7
+
---
8
+
9
+
# Does the SDK support iOS Bitcode Framework?
10
+
11
+
[<< Back to FAQ index](index.md)
12
+
13
+
Yes, DBR iOS does allow the user to enable bitcode in their project if they would like to. Enabling bitcode can potentially reduce the app's total size.
14
+
15
+
In order to enable bitcode, access the *Build Settings* of the project via Xcode and find the *Enable Bitcode* option to toggle it on.
description: When building my Cordova app, I get an error saying “invalid signature”. How do I resolve that?
6
+
needAutoGenerateSidebar: true
7
+
---
8
+
9
+
# When building my Cordova app, I get an error saying “invalid signature”. How do I resolve that?
10
+
11
+
[<< Back to FAQ index](index.md)
12
+
13
+
Once the `ios` platform is added to your Cordova project, you must manually configure the signature of the application on the iOS side of things via the *.xcworkspace* of the app. The *.xcworkspace* can be found in `platforms/ios`.
14
+
15
+
After opening the *.xcworkspace*, please go to the “Build Settings” and configure the “Signing & Capabilities” section.
0 commit comments