Podspec - Linking local Framework - objective-c

My application uses the local framework /Library/Frameworks/iTunesLibrary.framework.
Then I get those error messages:
- ERROR | [xcodebuild] someFile.h:10:9: fatal error: 'iTunesLibrary/ITLibrary.h' file not found
- ERROR | [OSX] [xcodebuild] someFile.h:10:9: fatal error: 'iTunesLibrary/ITLibMediaItem.h' file not found
I added the following line to my podspec:
s.framework = 'iTunesLibrary'
But apparently the framework is not found, probably because it's not searching through /Library/Frameworks/.
How can I solve this?

Got it. I had to set the FRAMEWORK_SEARCH_PATHS to /Library/Frameworks/.
s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '/Library/Frameworks/' }

Related

ERROR in ./node_modules/file-base64/index.js Module not found: Error: Can't resolve 'fs'

I'm using vue js and laravel mix.
I dl the file-base64 npm package.
And when i compile, i get this error =>
ERROR in ./node_modules/file-base64/index.js Module not found: Error: Can't resolve 'fs'
in the file-base-64 it import var fs = require('fs');
But i have access the fs.d.ts file. It feels the when it compile, it don't have a direct access.
Do someone got the same issue?

Error: Compile Error: bootstrap-datepicker is not a helper

I am using
https://www.npmjs.com/package/ember-cli-bootstrap-datepicker and Ember 2.18
package.json in devDependencies:
"ember-cli-bootstrap-datepicker": "0.6.1",
in hbs:
{{bootstrap-datepicker format="dd.mm.yy"}}
error after ember test:
actual: >
null
stack: >
Error: Compile Error: bootstrap-datepicker is not a helper
at http://localhost:7357/assets/vendor.js:21757:19
at Compilers.compile (http://localhost:7357/assets/vendor.js:21369:13)
at expr (http://localhost:7357/assets/vendor.js:21720:25)
at http://localhost:7357/assets/vendor.js:21458:17
at Compilers.compile (http://localhost:7357/assets/vendor.js:21369:13)
at compileStatement (http://localhost:7357/assets/vendor.js:22127:20)
at compileStatements (http://localhost:7357/assets/vendor.js:22132:13)
at CompilableTemplate.compileStatic (http://localhost:7357/assets/vendor.js:22157:31)
at http://localhost:7357/assets/vendor.js:18256:30
at AppendOpcodes.evaluate (http://localhost:7357/assets/vendor.js:17481:13)
message: >
Died on test #1 at Module.callback (http://localhost:7357/assets/tests.js:1333:24)
at Module.exports (http://localhost:7357/assets/vendor.js:119:32)
at requireModule (http://localhost:7357/assets/vendor.js:34:18)
at TestLoader.<anonymous> (http://localhost:7357/assets/test-support.js:10892:11)
at TestLoader.require (http://localhost:7357/assets/test-support.js:10882:27)
at TestLoader.loadModules (http://localhost:7357/assets/test-support.js:10874:16)
at loadTests (http://localhost:7357/assets/test-support.js:12321:22): Compile Error: bootstrap-datepicker is not a helper
negative: >
false
browser log: |
...
funny fact, if i remove format="dd.mm.yy" from {{}}, then it won't throw error. What am i supposed to add or what am i missing to test to work ? package's doc doesn't say anything
edit: i have seen this, ember Error: Compile Error: is not a helper, it seems i have everything right

Why is "sudo expo start" giving "unable to resolve root"?

I'm trying to run a react native app in expo, and after creating a blank app with expo init, when I cd into my project and do expo start, I get the following error:
events.js:282
throw er; // Unhandled 'error' event
^
Error: unable to resolve root /Users/myusername/Documents/native-app-name: failed to opendir(/Users/myusername/Documents/native-app-name): Operation not permitted
at BunserBuf.<anonymous> (/Users/myusername/Documents/native-app-name/node_modules/fb-watchman/index.js:95:23)
at BunserBuf.emit (events.js:305:20)
at BunserBuf.process (/Users/myusername/Documents/native-app-name/node_modules/bser/index.js:292:10)
at /Users/myusername/Documents/native-app-name/node_modules/bser/index.js:247:12
at processTicksAndRejections (internal/process/task_queues.js:79:11)
Emitted 'error' event on WatchmanWatcher instance at:
at Client.<anonymous> (/Users/myusername/Documents/native-app-name/node_modules/jest-haste-map/build/lib/WatchmanWatcher.js:130:10)
at Client.emit (events.js:305:20)
at BunserBuf.<anonymous> (/Users/myusername/Documents/native-app-name/node_modules/fb-watchman/index.js:107:12)
at BunserBuf.emit (events.js:305:20)
at /Users/myusername/Documents/native-app-name/node_modules/bser/index.js:249:12
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
watchmanResponse: {
version: '4.7.0',
error: 'unable to resolve root /Users/myusername/Documents/native-app-name: failed to opendir(/Users/myusername/Documents/native-app-name): Operation not permitted'
}
}
Why might this be?
Try to move your project folder to a different place on your local. I just tried and worked for me.

I could not resolve module because of the following error

error: bundling failed: Error: Unable to resolve module ../../../.cache/typescript/2.6/node_modules/#types/prop-types from /../../../../../sample.js: The module ../../../.cache/typescript/2.6/node_modules/#types/prop-types could not be found
It was an issue from import statement on sample.js page
import { array } from '../../../.cache/typescript/2.6/node_modules/#types/prop-types'

How to I debug systemJS error loading js as "" from

I am getting the following error:
system.src.js:123 Uncaught (in promise) Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:8000/dist/jquery.js
Error: XHR error (404 Not Found) loading http://localhost:8000/dist/jquery.js
Error loading http://localhost:8000/dist/jquery.js as "jquery" from http://localhost:8000/jspm_packages/npm/toastr#2.1.2/toastr.js
How do I go about fixing this?
I have done npm install and jspm install.
Thanks!
You need to make sure that jquery is mapped to the correct path in node_modules and also any modules that depend on jquery have the dependency explicitly declared:
map: {
'jquery' : 'path_to_jquery'
},
meta: {
'file_that depends_on_jquery' : {
deps: ['jquery']
}
}